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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]