yah, before this i used default lucene...but i dont know what end up wrong...some results with only single word matching when to the top of the results.
This i assumed is due to the score of the result being to high. Tat's why i am trying to add additional boost Ahmet Arslan wrote: > > > : I am trying to create a query, that first will return a set > : of results, then > : it will give a boost to the results that have all the > : keyword entered by the user. > > If I understand you correctly: User will enter multiple keywords. Lets say > a b c d. And you want documents - that contains/have all of the keywords > (a b c d) - get higher scores (boosted). In other words if there are some > documents in the collection that have all (a b c d), you want to see them > at the top of the result set. And result set may contain/retrieve > documents that have one or two of the keywords at the end of list. Am i > correct? > > If that's you want, you don't need to do anything special. Lucene does it > by default. Use default operator OR. The more query terms appears in a > document, the more relevant that document is to the query. > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > -- View this message in context: http://www.nabble.com/Generating-Query-for-Multiple-Clauses-in-a-Single-Field-tp24694748p24734379.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org