Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Lucene Term Encoder

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


pulsphoto at yahoo

Jun 26, 2009, 3:27 PM

Post #1 of 4 (560 views)
Permalink
Lucene Term Encoder

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 [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


simon.willnauer at googlemail

Jun 29, 2009, 5:52 AM

Post #2 of 4 (497 views)
Permalink
Re: Lucene Term Encoder [In reply to]

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 Seer<pulsphoto [at] yahoo> wrote:
>
> 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 [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


pulsphoto at yahoo

Jun 29, 2009, 10:44 AM

Post #3 of 4 (503 views)
Permalink
Re: Lucene Term Encoder [In reply to]

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 Seer<pulsphoto [at] yahoo> wrote:
>>
>> 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 [at] lucene
>> For additional commands, e-mail: java-user-help [at] lucene
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>
>

--
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 [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


erickerickson at gmail

Jun 29, 2009, 11:41 AM

Post #4 of 4 (499 views)
Permalink
Re: Lucene Term Encoder [In reply to]

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 <pulsphoto [at] yahoo> 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 Seer<pulsphoto [at] yahoo> wrote:
> >>
> >> 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 [at] lucene
> >> For additional commands, e-mail: java-user-help [at] lucene
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> > For additional commands, e-mail: java-user-help [at] lucene
> >
> >
> >
>
> --
> 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 [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.