FAQ
Hello,
Is there any class in lucene which will do encoding for term?


Thanks
--
View this message in context: http://www.nabble.com/Lucene-Term-Encoder-tp24228145p24228145.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

  • Simon Willnauer at Jun 29, 2009 at 12:53 pm
    Hi John,

    what do you mean by encoding? If you can be more clear about what you
    are looking for you might get help easily.

    simon
    On Sat, Jun 27, 2009 at 12:27 AM, John Seerwrote:
    Hello,
    Is there any class in lucene which will do encoding for term?


    Thanks
    --
    View this message in context: http://www.nabble.com/Lucene-Term-Encoder-tp24228145p24228145.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
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org
  • John Seer at Jun 29, 2009 at 5:44 pm
    Hello Simon,

    I am looking for some class which automaticly will take care of text and
    convert it into text which can be used in query. The same way as URLEncoder
    encodes string for URL for example:

    Term: Las Vegas-Food AND Dining place

    After encoding term: Las Vagas(escapedDash)Food and Dining place.

    Basilcy my main problem is dash for this moment I don't know how to search
    for term which has a dash in it



    Thanks



    Simon Willnauer wrote:
    Hi John,

    what do you mean by encoding? If you can be more clear about what you
    are looking for you might get help easily.

    simon
    On Sat, Jun 27, 2009 at 12:27 AM, John Seerwrote:
    Hello,
    Is there any class in lucene which will do encoding for term?


    Thanks
    --
    View this message in context:
    http://www.nabble.com/Lucene-Term-Encoder-tp24228145p24228145.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
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org

    --
    View this message in context: http://www.nabble.com/Lucene-Term-Encoder-tp24228145p24258634.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
  • Erick Erickson at Jun 29, 2009 at 6:41 pm
    You probably need to make sure you understand analyzers beforeyou think
    about escaping/encoding. For instance, if you use
    StandardAnalyzer when indexing the text "Las Vegas-Food Dining Place"
    would index the tokens
    las
    vegas
    food
    dining
    place

    nary a hyphen to be seen. If you used StandardAnalyzer for querying,
    all would be fine.

    I strongly recommend you get a copy of Luke to examine the results of
    using different analyzers because different analyzers do different things.

    A good starting point is to just not worry about this at all and use the
    *same* analyzer for indexing and searching, then modify as necessary.

    Best
    Erick
    On Mon, Jun 29, 2009 at 1:44 PM, John Seer wrote:


    Hello Simon,

    I am looking for some class which automaticly will take care of text and
    convert it into text which can be used in query. The same way as URLEncoder
    encodes string for URL for example:

    Term: Las Vegas-Food AND Dining place

    After encoding term: Las Vagas(escapedDash)Food and Dining place.

    Basilcy my main problem is dash for this moment I don't know how to search
    for term which has a dash in it



    Thanks



    Simon Willnauer wrote:
    Hi John,

    what do you mean by encoding? If you can be more clear about what you
    are looking for you might get help easily.

    simon
    On Sat, Jun 27, 2009 at 12:27 AM, John Seerwrote:
    Hello,
    Is there any class in lucene which will do encoding for term?


    Thanks
    --
    View this message in context:
    http://www.nabble.com/Lucene-Term-Encoder-tp24228145p24228145.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
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org

    --
    View this message in context:
    http://www.nabble.com/Lucene-Term-Encoder-tp24228145p24258634.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
postedJun 26, '09 at 10:27p
activeJun 29, '09 at 6:41p
posts4
users3
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase