The usual reason for this is that you need to look at your
analyzers. What analyzers are you using during index AND
query time? The first thing I suspect here is capitalization. Are
you sure that both your index and query analyzers fold case?

Especially if you're new to Lucene, get a copy of Luke. It lets
you examine your index, try queries, see how queries are
parsed, etc. It's invaluable.

Let's see the indexing fragment and the search fragment
of code and we'll probably be able to give you better advice..

Best
Erick

On Mon, Dec 1, 2008 at 8:48 AM, Ian Vink <[EMAIL PROTECTED]> wrote:

> But when I search (50,000 documents) I don't get all documents with "Hello"
> in them. I get a lot, but not all.
> Ian
>
> On Mon, Dec 1, 2008 at 9:33 AM, Erik Hatcher <[EMAIL PROTECTED]
> >wrote:
>
> >
> > On Dec 1, 2008, at 8:30 AM, Ian Vink wrote:
> >
> >> Is there a simple example on how to query for "contents:Hello" in all
> >> documents using
> >> MatchAllDocsQuery<
> >>
> http://incubator.apache.org/lucene.net/docs/2.1/Lucene.Net.Search.MatchAllDocsQuery.html
> >> >
> >> ?
> >> I want 100% of the docs with "Hello"
> >>
> >
> > You're looking for a TermQuery, not MatchAllDocsQuery.
> >
> >        Erik
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

Reply via email to