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

Mailing List Archive: Lucene: Java-User

escaping logical operators such as OR AND

 

 

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


Aravind.Yarram at equifax

Jul 22, 2008, 6:20 AM

Post #1 of 5 (223 views)
Permalink
escaping logical operators such as OR AND

helo all,

In my project, we are indexing the US states...when we try to search on
oregon ; state:OR, search on OR is throwing err...i know OR is a logical
op in lucene...is there a way to escape such keywords?

tx!

Regards,
Aravind R Yarram
Enabling Technologies
Equifax Information Services LLC
1525 Windward Concourse, J42E
Alpharetta, GA 30005
desk: 770 740 6951
email: aravind.yarram[at]equifax.com
This message contains information from Equifax Inc. which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail postmaster[at]equifax.com.


Aravind.Yarram at equifax

Jul 22, 2008, 6:28 AM

Post #2 of 5 (216 views)
Permalink
escaping logical operators such as OR AND [In reply to]

helo all,

In my project, we are indexing the US states...when we try to search on
oregon ; state:OR, search on OR is throwing err...i know OR is a logical
op in lucene...is there a way to escape such keywords?

tx!

Regards,
Aravind R Yarram
Enabling Technologies
Equifax Information Services LLC
1525 Windward Concourse, J42E
Alpharetta, GA 30005
desk: 770 740 6951
email: aravind.yarram[at]equifax.com
This message contains information from Equifax Inc. which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail postmaster[at]equifax.com.


erickerickson at gmail

Jul 22, 2008, 6:40 AM

Post #3 of 5 (217 views)
Permalink
Re: escaping logical operators such as OR AND [In reply to]

Have you tried lower-casing them? To be treated as an operator, they
must be upper cased.

But be careful that, when you lower-case them, your query analyzer doesn't
treat them as stop words....

Best
Erick

On Tue, Jul 22, 2008 at 9:28 AM, <Aravind.Yarram[at]equifax.com> wrote:

> helo all,
>
> In my project, we are indexing the US states...when we try to search on
> oregon ; state:OR, search on OR is throwing err...i know OR is a logical
> op in lucene...is there a way to escape such keywords?
>
> tx!
>
> Regards,
> Aravind R Yarram
> Enabling Technologies
> Equifax Information Services LLC
> 1525 Windward Concourse, J42E
> Alpharetta, GA 30005
> desk: 770 740 6951
> email: aravind.yarram[at]equifax.com
> This message contains information from Equifax Inc. which may be
> confidential and privileged. If you are not an intended recipient, please
> refrain from any disclosure, copying, distribution or use of this
> information and note that such actions are prohibited. If you have received
> this transmission in error, please notify by e-mail postmaster[at]equifax.com
> .
>


Aravind.Yarram at equifax

Jul 22, 2008, 6:53 AM

Post #4 of 5 (216 views)
Permalink
Re: escaping logical operators such as OR AND [In reply to]

lower-casing worked...tx...but is there a way of escaping them like we use
escape characters in java!

Regards,
Aravind R Yarram
Enabling Technologies
Equifax Information Services LLC
1525 Windward Concourse, J42E
Alpharetta, GA 30005
desk: 770 740 6951
email: aravind.yarram[at]equifax.com



"Erick Erickson" <erickerickson[at]gmail.com>
07/22/2008 09:40 AM
Please respond to
java-user[at]lucene.apache.org


To
java-user[at]lucene.apache.org
cc

Subject
Re: escaping logical operators such as OR AND






Have you tried lower-casing them? To be treated as an operator, they
must be upper cased.

But be careful that, when you lower-case them, your query analyzer doesn't
treat them as stop words....

Best
Erick

On Tue, Jul 22, 2008 at 9:28 AM, <Aravind.Yarram[at]equifax.com> wrote:

> helo all,
>
> In my project, we are indexing the US states...when we try to search on
> oregon ; state:OR, search on OR is throwing err...i know OR is a logical
> op in lucene...is there a way to escape such keywords?
>
> tx!
>
> Regards,
> Aravind R Yarram
> Enabling Technologies
> Equifax Information Services LLC
> 1525 Windward Concourse, J42E
> Alpharetta, GA 30005
> desk: 770 740 6951
> email: aravind.yarram[at]equifax.com
> This message contains information from Equifax Inc. which may be
> confidential and privileged. If you are not an intended recipient,
please
> refrain from any disclosure, copying, distribution or use of this
> information and note that such actions are prohibited. If you have
received
> this transmission in error, please notify by e-mail
postmaster[at]equifax.com
> .
>


This message contains information from Equifax Inc. which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail postmaster[at]equifax.com.


erickerickson at gmail

Jul 22, 2008, 7:13 AM

Post #5 of 5 (218 views)
Permalink
Re: escaping logical operators such as OR AND [In reply to]

<<is there a way of escaping them like we use
escape characters in java>>

I haven't ever tried, so I don't know <G>... But my
poor memory doesn't bring any to mind....

Best
Erick

On Tue, Jul 22, 2008 at 9:53 AM, <Aravind.Yarram[at]equifax.com> wrote:

> lower-casing worked...tx...but is there a way of escaping them like we use
> escape characters in java!
>
> Regards,
> Aravind R Yarram
> Enabling Technologies
> Equifax Information Services LLC
> 1525 Windward Concourse, J42E
> Alpharetta, GA 30005
> desk: 770 740 6951
> email: aravind.yarram[at]equifax.com
>
>
>
> "Erick Erickson" <erickerickson[at]gmail.com>
> 07/22/2008 09:40 AM
> Please respond to
> java-user[at]lucene.apache.org
>
>
> To
> java-user[at]lucene.apache.org
> cc
>
> Subject
> Re: escaping logical operators such as OR AND
>
>
>
>
>
>
> Have you tried lower-casing them? To be treated as an operator, they
> must be upper cased.
>
> But be careful that, when you lower-case them, your query analyzer doesn't
> treat them as stop words....
>
> Best
> Erick
>
> On Tue, Jul 22, 2008 at 9:28 AM, <Aravind.Yarram[at]equifax.com> wrote:
>
> > helo all,
> >
> > In my project, we are indexing the US states...when we try to search on
> > oregon ; state:OR, search on OR is throwing err...i know OR is a logical
> > op in lucene...is there a way to escape such keywords?
> >
> > tx!
> >
> > Regards,
> > Aravind R Yarram
> > Enabling Technologies
> > Equifax Information Services LLC
> > 1525 Windward Concourse, J42E
> > Alpharetta, GA 30005
> > desk: 770 740 6951
> > email: aravind.yarram[at]equifax.com
> > This message contains information from Equifax Inc. which may be
> > confidential and privileged. If you are not an intended recipient,
> please
> > refrain from any disclosure, copying, distribution or use of this
> > information and note that such actions are prohibited. If you have
> received
> > this transmission in error, please notify by e-mail
> postmaster[at]equifax.com
> > .
> >
>
>
> This message contains information from Equifax Inc. which may be
> confidential and privileged. If you are not an intended recipient, please
> refrain from any disclosure, copying, distribution or use of this
> information and note that such actions are prohibited. If you have received
> this transmission in error, please notify by e-mail postmaster[at]equifax.com
> .
>

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.