lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: Same query different results?
Date Thu, 25 Oct 2007 05:24:47 GMT

25 okt 2007 kl. 06.33 skrev Warren:

> This query works correctly in my app and Luke
>
> +(upc:almonds description:almonds content:almonds) +dept:bulk +zone:1
>
> Query 2:
> This query works correctly in Luke but returns no results in my app
>
> +(upc:almonds description:almonds content:almonds) +dept:"Bulk"  
> +zone:1
>
> My app code:
>
> Directory dir = FSDirectory.getDirectory(indexDir);
> IndexSearcher searcher = new IndexSearcher(dir);
> Hits hits = searcher.search(query);

How do you create the query? If using a query parser, how do you  
instantiate the query parser?

>
> The only difference is that the term "bulk" is quoted in one query  
> and not

There is also the upper case B.

Comparing rewritten and queries and their weight explenation might  
prove helpful.

-- 
karl

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