Indexing Multilevel JSON Objects in Lucene

て烟熏妆下的殇ゞ 提交于 2019-12-25 01:34:14

问题


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:


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


来源:https://stackoverflow.com/questions/51874022/indexing-multilevel-json-objects-in-lucene

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!