Re: Payload Query and Document Boosts

2011-10-13 Thread Sujit Pal
Just wanted to close the loop with some extra information I found during looking at this issue further. From what I understand about the norm(t,d) and computeNorm() what I want isn't exactly possible, but I can get something close. In any case, turns out we want to go with a more baroque boosting

Re: Is it possible to combine Wildcard and Phrasequery for the Queryparser

2011-10-13 Thread Dmitry Savenko
Hello! Here is a solution I come up with. Heavy code, has limitations, but works for my case. // parsing query QueryParser parser = new QueryParser(LUCENE_VERSION, CONTENTS_FIELD, analyzer); Query q = parser.parse("\"" + QueryParser.escape(phraseText) + "\""); q = q.rewrite(searcher.getIndexRea

Is it possible to combine Wildcard and Phrasequery for the Queryparser

2011-10-13 Thread Ralf Heyde
Hello, i'm trying to search the following phase: I'm searching all occurrences of: . "The Right Way" . "The Right Ways" Possible solutions could be something like this - combining a phrase & wildcard search: . title:"The Right Way*" . title:"The Ri

Re: May I have "order expression" in Query?

2011-10-13 Thread Ian Lea
See the IndexSearcher methods that take org.apache.lucene.search.Sort arguments. For learning about lucene the 2nd edition of Lucene In Action is highly recommended. http://www.manning.com/hatcher3/ -- Ian. On Thu, Oct 13, 2011 at 4:54 AM, Mead Lai wrote: > Hello all, > > Well, I add some do