Hi,
HitCollector sounds very interesting - do you have an example for how to use it?
Frank
-Ursprüngliche Nachricht-
Von: Otis Gospodnetic [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. September 2005 05:28
An: java-user@lucene.apache.org
Cc: Murray Altheim
Betreff: Re: limit return r
Is there a good way to cancel a search? I mean e.g. after 10 seconds or if the
user changed his mind and wants to start another query.
Till now I didn't have a query that took longer than 10 secs, but this can
happen easily when the network connection is very slow or something like that.
I thou
The problem is that when searching there is no real save point to stop
the thread. The only line that takes time is this one:
Hits hits = searcher.search(query);
Frank
>I've had such a long lasting search too. I sounds good to start the
>search in another thread. I've done this for the indexin
ecked a flag on each hit, and
throw an exception if it was set.
In a separate thread, you could set the flag to cancel the search.
-Yonik
Now hiring -- http://tinyurl.com/7m67g
On 9/8/05, Kunemann Frank <[EMAIL PROTECTED]> wrote:
>
>
> The problem is that when searching there is n
erstag, 8. September 2005 15:09
An: java-user@lucene.apache.org
Betreff: Re: cancel search
You could create your own HitCollector that checked a flag on each hit, and
throw an exception if it was set.
In a separate thread, you could set the flag to cancel the search.
-Yonik
Now hiring -- http:/
RuntimeException and throw and catch
this instead.
"Kunemann Frank" <[EMAIL PROTECTED]> wrote on 09/09/2005
10:01:56:
> Exceptions didn't work as you need to implement the HitCollector
> class. Its method "collect" doesn't throw any exceptions and I don&
This depends on the analyzer you are using. You can find the standard
analyzers in org.apache.lucene.analysis. To find out what they do, I
recommend the example in Lucene in action in 4.2.3 called
"AnalyzerDemo". If you don't have the book, you can also download the
examples from http://www.manning
What stops you from using the reader before you add the document to the
index?
Frank
-Original Message-
From: Beady Geraghty [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 15, 2005 2:30 AM
To: java-user@lucene.apache.org
Subject: input reader closed after IndexWriter.addDocument(doc
Maybe you should write your own analyzer for this case that changes all letters
to lower case but keeps all the numbers and signs as they are.
The other solution is not to use an analyzer for this field.
Frank
-Original Message-
From: "M å n i s h " [mailto:[EMAIL PROTECTED]
Sent: Monda
lue like normal text, then may be it will
work.
-Original Message-
From: Kunemann Frank [mailto:[EMAIL PROTECTED]
Sent: Monday, September 26, 2005 12:28 PM
To: java-user@lucene.apache.org
Subject: RE: Problems in standard Analyzer
Maybe you should write your own analyzer for this case t
e that MN12345 value very clearly that too in the
same case ( I have Limo Lucene Index Monitor) but when I am trying to search
the same value , I am not getting any results, I think the problem lies some
where else..
-Original Message-
From: Kunemann Frank [mailto:[EMAIL PROTECTED]
Sent: M
11 matches
Mail list logo