lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Vink" <ianv...@gmail.com>
Subject Re: Newbie: MatchAllDocsQuery sample?
Date Mon, 01 Dec 2008 14:17:21 GMT
The Lucene.NET implementation doesn't have:
TopDocs search(Query query, int n) it only has:

public virtual TopDocs
<http://www.sitefinity.com/help/developer-manual/Telerik.Search~Lucene.Net.Search.TopDocs.html>
Search(
   Query <http://www.sitefinity.com/help/developer-manual/Telerik.Search~Lucene.Net.Search.Query.html>
*query <http://www.sitefinity.com/help/developer-manual/telerik.search-lucene.net.search.searcher-search(query,filter,int32).html#>*,
   Filter <http://www.sitefinity.com/help/developer-manual/Telerik.Search~Lucene.Net.Search.Filter.html>
*filter <http://www.sitefinity.com/help/developer-manual/telerik.search-lucene.net.search.searcher-search(query,filter,int32).html#>*,
   int <http://www.sitefinity.com/help/developer-manual/telerik.search-lucene.net.search.searcher-search(query,filter,int32).html#>
*n <http://www.sitefinity.com/help/developer-manual/telerik.search-lucene.net.search.searcher-search(query,filter,int32).html#>*
)


I'm not sure what to put in for Filter?



On Mon, Dec 1, 2008 at 10:09 AM, Ian Lea <ian.lea@gmail.com> wrote:

> How are you searching?  Are you telling it to collect enough hits?
>
> e.g. if you are using method TopDocs search(Query query, int n) are
> you setting n high enough?
>
> --
> Ian.
>
> On Mon, Dec 1, 2008 at 1:48 PM, Ian Vink <ianvink@gmail.com> 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 <erik@ehatchersolutions.com
> >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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message