lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rishabh Bajpai" <r_baj...@lycos.com>
Subject Stop Words in the Query causing Parse Exception?
Date Thu, 17 Apr 2003 11:07:47 GMT
 

I belive this should not have happened, but I am getting a Parse Exception if I have some
stop-words like 'and' 'or' 'is' a' , etc. inn the Query. eg, queryString 1: 
( Title:rishabh^1 OR Title:and^1 OR Title:bajpai^1 ) OR ( Description:rishabh^1 OR Description:and^1
OR Description:bajpai^1 ) OR ( Entity:rishabh^1 OR Entity:and^1 OR Entity:bajpai^1 ) OR (
Keyword:rishabh^1 OR Keyword:and^1 OR Keyword:bajpai^1 ) OR ( Content:rishabh^1 OR Content:and^1
OR Content:bajpai^1 )

It looked like that the parse method got confused with those extra and,etc. What I then tried
was to put the words within "", but now i got a Null Pointer Exception. eg, queryString 2:

( Title:"rishabh"^1 OR Title:"and"^1 OR Title:"bajpai"^1 ) OR ( Description:"rishabh"^1 OR
Description:"and"^1 OR Description:"bajpai"^1 ) OR ( Entity:"rishabh"^1 OR Entity:"and"^1
OR Entity:"bajpai"^1 ) OR ( Keyword:"rishabh"^1 OR Keyword:"and"^1 OR Keyword:"bajpai"^1 )
OR ( Content:"rishabh"^1 OR Content:"and"^1 OR Content:"bajpai"^1 )

The above query works perfectly without such words by the way. 
Is there a simple way of handling this particular case??

-rb






____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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


Mime
View raw message