lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: sort lucene results
Date Thu, 26 Feb 2009 05:52:08 GMT

: but i need the result by the word place in the sentence like this:
: 
: "bbb text 4...". , "text 2 bbb text " , "text 1 ok ok ok bbb" ..

1) SpanFirstQuery should work, it scores higher the closer the nested 
query is to the start -- just use a really high limit,.  if you are only 
dealing with simple Term/Phrase queries it's easy to switch to using SpanTerm and 
SpanNear queries inside of a SpanFirstQuery.

2) Please Use "java-user@lucene" Not "java-dev@lucene"
http://people.apache.org/~hossman/#java-dev

Your question is better suited for the java-user@lucene mailing list ...
not the java-dev@lucene list.  java-dev is for discussing development of
the internals of the Lucene Java library ... it is *not* the appropriate
place to ask questions about how to use the Lucene Java library when
developing your own applications.  Please resend your message to
the java-user mailing list, where you are likely to get more/better
responses since that list also has a larger number of subscribers.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message