: 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-u...@lucene" Not "java-...@lucene"
http://people.apache.org/~hossman/#java-dev

Your question is better suited for the java-u...@lucene mailing list ...
not the java-...@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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to