Yes. thats exactly the problem. I just found out that analyzer was not
being set correctly.
Thanks,
Chris Hostetter wrote:
: Standard analyzer lower cases while indexing and searching.
Correct, but since the toString() of your query still has capital words in
it (like "contentNew:Wireless")
: Standard analyzer lower cases while indexing and searching.
Correct, but since the toString() of your query still has capital words in
it (like "contentNew:Wireless") you obviously didn't build this query
using the StandardAnalyzer -- IndexSearcher doesn't apply any Analyzers
for you when you s
I am using the standard analyzer with luke.
Standard analyzer lower cases while indexing and searching.
The BooleanQuery, finalQuery.toString() in my case below is:
+(+contentNew:wireless +contentNew:fm +contentNew:car
+contentNew:transmitter) +entity:product +(name:wireless fm car
transmitte
How are you constructing your BooleanQuery and what Analyzer are you
using with Luke? You have some capitalized words in your query, and
most analyzers would lowercase those, which may be the issue (perhaps
you indexed the capitalized words?).
Erik
On Feb 16, 2006, at 2:41 PM, Mu
Hi,
I have a query that gets hits via luke. I can see the documents it
finds. But when I run the same query via my java code it returns 0 hits.
Note:
1. I am using standard analyzer while indexing and searching.
2. I have made sure that I am querying the same index via luke or
through my java