English 中文(简体)
1. 提出野心查询作为QueryParser违约
原标题:Setting wildcard queries as default for QueryParser

当我的用户进入像“密码”这样的术语时,我想把它当作一个野心查询“密码*”,这样就找到了开始“密码”的所有术语。 难道有办法告诉QueryParser,以便自动制造野心问询,还是我不得不把问话说成 par? 这只是简单询问的一个问题,但可能会成为更复杂问题的trick。

问题回答

除非我缺少一些东西——对每一个问题来说,一个野心 que常常是不可思议的——它非常昂贵,可能造成许多问题。 如果你试图找到结果,包括 stem的变体(例如,赢家、赢家等) 您应考虑采用无克办法。





相关问题
Lucene.NET in medium trust

How do I make Lucene.NET 2.3.2 run in a medium trust environment? GoDaddy doesn t like it the way it is.

Grails searchable plugin

In my Grails app, I m using the Searchable plugin for searching/indexing. I want to write a Compass/Lucene query that involves multiple domain classes. Within that query when I want to refer to the id ...

Search subset of objects using Compass/Lucene

I m using the searchable plugin for Grails (which provides an API for Compass, which is itself an API over Lucene). I have an Order class that I would like to search but, I don t want to search all ...

Lucene seems to be caching search results - why?

In my project we use Lucene 2.4.1 for fulltext search. This is a J2EE project, IndexSearcher is created once. In the background, the index is refreshed every couple of minutes (when the content ...

热门标签