开发者

String to Lucene Query

开发者 https://www.devze.com 2023-02-19 11:04 出处:网络
I\'m using Lucene.Net and lucene query can change string. In my application, search are saved and re-searched using Boolean Query. I saved lucene query syntax like

I'm using Lucene.Net and lucene query can change string. In my application, search are saved and re-searched using Boolean Query. I saved lucene query syntax like +Field1:value +(+Field2:value) and I want to change string to lucene query. I find it in google but the suitable solution for my application is not found. Writing custom class is useful for simple query but I'm worry for complex query co开发者_JAVA百科ntaining AND or OR and many +,- syntax in query. So please tell me how to do. Thank for any advice !!


What you are looking for is the Lucene QueryParser.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号