lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Westfall" <dwestf...@TradelineInc.com>
Subject RE: Analyzer or QueryParser problem?
Date Tue, 26 Jul 2005 17:32:19 GMT
D'OH! That was it! 

-----Original Message-----
From: Zhang, Lisheng [mailto:Lisheng.Zhang@broadvision.com] 
Sent: Tuesday, July 26, 2005 10:25 AM
To: java-user@lucene.apache.org
Subject: RE: Analyzer or QueryParser problem?

Hi Derek,

My guessing is that ":" is special, QueryParser may regard ":" as for
qualifying a field, we may need to escape this special symbol as:

"GM\:Systems"

as query string.

Regards, Lisheng

-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
Sent: Tuesday, July 26, 2005 9:11 AM
To: java-user@lucene.apache.org
Subject: Re: Analyzer or QueryParser problem?


You can use Luke to see what got indexed.  This will tell you what the
Analyzer did.
You can then use QueryParser from the command line (it's got a main
method), give it your input, and see what it returns.  This will tell
you what QueryParser+Analyzer did.  Oh, you use MFQP.  It may have a
main method, too, I'd have to check... To simplify, try getting it
working with the regular QueryParser first.

Otis


--- Derek Westfall <dwestfall@TradelineInc.com> wrote:

> I am working on a business directory app.
> 
> As you would expect, some companies have unusual names.
> 
> My first problem is the company with title: "GM:Systems"
> 
> I indexed the title field as a text field with the English 
> standardAnalyzer. Searching on "GM Systems" will turn it up, but 
> searching on "GM:Systems" or "GMSystems" will not. Since I'm using the

> same analyzer for indexing and for searching, on the same text, 
> shouldn't it turn up? I'm searching using the MultiFieldQueryParser.
> 
> Any input appreciated, as always. :)
> 
> Derek
> 
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
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


Mime
View raw message