Just don't close it. Think of this as a singleton pattern.
Erick
On 11/12/06, spinergywmy <[EMAIL PROTECTED]> wrote:
Hi Doron,
How to reuse the searcher? Is there any example on how to do this?
Thanks
regards,
Wooi Meng
--
View this message in context:
http://www.nabble.com/Filte
Hi Doron,
How to reuse the searcher? Is there any example on how to do this?
Thanks
regards,
Wooi Meng
--
View this message in context:
http://www.nabble.com/Filter-query-method-tf2586547.html#a7310277
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
You did not specify what's wrong - in what way is the code below not
working as you expect?
Two things to check:
(1) search() and refindSearchResult() process the text of the first query
differently. In search() the text is added to multiple fields
("metaField"). The way it is done btw would not
Hi Doron,
I m not sure I m implement your suggestion correctly.
The way I did is I have 2 separate methods controlling by the check box.
I used basic search method for the first time and that will look up the
index from the directory. After I got the result, I will check the checkbox
and t
Hi,
Thanks, I will try it again.
regards,
Wooi Meng
--
View this message in context:
http://www.nabble.com/Filter-query-method-tf2586547.html#a7250452
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
spinergywmy <[EMAIL PROTECTED]> wrote on 08/11/2006 01:56:00:
> within my first search result, there is only one record that
contains
> "Java" and "Tomcat" words, therefore, there should be only one record
return
> for 2nd search. And the highlight is now move from "Java" to "Tomcat".
To my
Hi Doron,
Thanks for the suggestion.
However, the solution that u suggest come close to what I really want.
The scenario sound like this:
when I key in the first search query, for instance, "Java", the return
result has 3 records. Next, the perform the second search, which the q
Hi Wooi Meng,
I don't understand this code.
In particular, searchString1 has no efect, and not clear what are start and
end.
spinergywmy <[EMAIL PROTECTED]> wrote on 07/11/2006 17:04:45:
> Query query1 = parser.parse(searchString1);
> Query query2 = parser.parse(searchString2);
>
> filter = new F
Hi Chris,
I have made some modification for the codes that I have posted yesterday.
reader = IndexReader.open(DsConstant.indexDir);
Searcher searcher = new IndexSearcher(reader);
Analyzer analyzer = new StandardAnalyzer();
Hi Chris,
For my case, I want the scores of final query to be based on the second
query = "Tomcat". So, is there any example that I can refering to?
Thanks.
regards,
Wooi Meng
--
View this message in context:
http://www.nabble.com/Filter-query-method-tf2586547.html#a7230856
Sent from th
: for example, if my first query is "Java" and it returned 3 records.
: For my 2nd query is "Tomcat", and within my first search, there is only one
: record contain the word "Tomcat", this will be my intention to do so.
:
:Is it possible for lucene to do so?
anything is possible .. but
Hi Chris,
Another thing I would like to emphasize is:
for example, if my first query is "Java" and it returned 3 records.
For my 2nd query is "Tomcat", and within my first search, there is only one
record contain the word "Tomcat", this will be my intention to do so.
Is it possible
Hi Chris,
My scenario is:
I will key in the first search value in the text box, then the first
search result will be return. Next, I will clear the first search value and
key in the second search value within the same text box. The 2nd search
value will search the first result, for inst
:Is there anyone built your own filter query before, in order to perform
: search within search results. Meaning after the first search, the result is
: cached and the second search searches the result that return from the first
: searched, and is not searching the whole index again.
:
:Ju
14 matches
Mail list logo