Your first query searches over the field site for
lucene.apache.org and apache.

Your second query searches over the field date
for all those terms, and I assume apache isn't
in your date field.

Luke use a default field a bit differently, and
searched your dates in the date field and
whatever your default field was for apache. The
"update" button in Luke is very helpful here, as
is the toString() method on queries in your program.

The toString() method is what I go to first when
queries don't give me what I expect.......

Best
Erick


On 8/26/07, kevin chen <[EMAIL PROTECTED]> wrote:
>
> Hi, guys
>
> I am very puzzled by the searching by field.
>
> I can successfully do following query:
>
> site:lucene.apache.org "apache"
> which returned 20 hits.
>
> But, following query retured 0 hit.
>
> date:20070101-20070701 "apache"
>
> Using luke, query the same index using query
> date:20070101-20070701 apache
> returned 2 documents.
>
> What did I miss here? is there some logics implemented for "site:"
> keyword that I have to do for other keyword?
>
> --Kevin
>
>
>

Reply via email to