FAQ
hi i need help.

i need to search by word in sentences with lucene. for example by the word
"bbb" i got the right results of all the sentences :

"text ok ok ok bbb" , "text 2 bbb text " , "bbb text 4...".

but i need the result by the word offset in the sentence like this:

"bbb text 4...". , "text 2 bbb text " , "text 1 ok ok ok bbb" ..

waiting for ideas.. thanks..


--
View this message in context: http://www.nabble.com/search-by-word-offset-tp22284787p22284787.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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

Search Discussions

  • Shashi Kant at Mar 2, 2009 at 10:06 am
    Not sure what you are asking about, but you might want to take a look at
    http://lucene.apache.org/java/2_4_0/api/contrib-surround/index.html

    The Surround parser offers many features around the span query (which I
    suspect is what you are looking for)

    Shashi

    On Mon, Mar 2, 2009 at 4:57 AM, shb wrote:


    hi i need help.

    i need to search by word in sentences with lucene. for example by the word
    "bbb" i got the right results of all the sentences :

    "text ok ok ok bbb" , "text 2 bbb text " , "bbb text 4...".

    but i need the result by the word offset in the sentence like this:

    "bbb text 4...". , "text 2 bbb text " , "text 1 ok ok ok bbb" ..

    waiting for ideas.. thanks..


    --
    View this message in context:
    http://www.nabble.com/search-by-word-offset-tp22284787p22284787.html
    Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMar 2, '09 at 9:58a
activeMar 2, '09 at 10:06a
posts2
users2
websitelucene.apache.org

2 users in discussion

Shashi Kant: 1 post Shb: 1 post

People

Translate

site design / logo © 2022 Grokbase