简体   繁体   中英

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.

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"}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM