Indexing Multilevel JSON Objects in Lucene

I am new to Lucene. I have worked on Lucene search using field value pairs in documents. Now there is a requirement to parse some JSON files and Index them up for Lucene search. I have an idea on working with simple form of JSON file according to this article.

But the JSON Structure I have to work with is little more complex than that. Any kind of idea will be appreciated.

Thanks.

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Jason Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Jason
Guest

You basically can linearize your json and then index it as in article you’ve provided.

For instance, json like this:

{"key": {"hello": "world"}}

will be transformed into:

{"key.hello": "world"}