lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Kiselevski" <>
Subject RE: Correct query
Date Mon, 27 Dec 2004 11:28:33 GMT

Thanks Erik,
I use StandardAnalyze to index RPG/4.
I use StandardAnalyzer and IndexSearcher with TermQuery without
QueryParser. So, I thought that as a result of query
Text:RPG I still have to get some hit, but it didn't happen.

-----Original Message-----
From: Erik Hatcher []
Sent: Monday, December 27, 2004 11:51 AM
To: Lucene Users List
Subject: Re: Correct query

On Dec 27, 2004, at 3:21 AM, Alex Kiselevski wrote:
> Hello,
> I indexed some document that included a word RPG/4.
> So, when I made a search - I builded a query
> Text:RPG but it didn't find a thing only Text:RPG/4 gave me the
> correct result. Tell me please what have I do to build a a dynamic
> (not hardcoded like in this example )query to get right results

What Analyzer did you use?   Are you using QueryParser and using the
same analyzer with it?  Please read the AnalysisParalysis page on the
wiki.  Also, running the AnalyzerDemo from Lucene in Action's source
code yields this, which should help illuminate the situation:

$ ant -emacs AnalyzerDemo
Buildfile: build.xml


       Demonstrates analysis of sample text.

       Refer to the "Analysis" chapter for much more on this
       extremely crucial topic.

Press return to continue...

String to analyze: [This string will be analyzed.]
Running lia.analysis.AnalyzerDemo...
Analyzing "RPG/4"




To unsubscribe, e-mail:
For additional commands, e-mail:

The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message