See below
On 5/14/07, David Leangen <[EMAIL PROTECTED]> wrote:
Hello!
I am new to Lucene, so forgive me if my question is basic. I did try
googling for an answer...
For an ajax autocomplete widget, I am querying using Lucene. I only want
to return, for example, the first 20 hits of anything
Thank you very much for this. Some more questions inline...
>
> - How can I limit the number of hits? I don't know in
>advance what the data will be, so it's not feasible for
>me to use RangeQuery.
>
>
> You can use a TopDocs or a HitCollector object wh
> Ok, you're right. It's not the limiting of the results that's
> the problem, it's the way the search is expanded.
>
> Since this is an autocomplete, when the user types, for
> example "a" or a Japanese character "あ", I am using
> PrefixFilter for this, so I guess the search turns into "a*"
>
Thank you, Erick, this is very useful!
Have you ever taken a look at Google Suggest[1]? It's very fast, and the
results are impressive. I think your suggestion will go a long way to
fixing my problem, but there's probably still quite a gap between this
approach and the kind of results that Google
On May 17, 2007, at 9:18 PM, David Leangen wrote:
Have you ever taken a look at Google Suggest[1]? It's very fast,
and the
results are impressive. I think your suggestion will go a long way to
fixing my problem, but there's probably still quite a gap between this
approach and the kind of resul
Ok, that site is very nice!
However... it was really slow for me. Any idea why? Would that be Solr's
"fault"? Or just an overloaded server?
Just curious... I'm interested in looking further into Solr.
Cheers,
Dave
On Thu, 2007-05-17 at 23:32 -0700, Erik Hatcher wrote:
> On May 17, 2007, at