Sorry...I mean the double searching part. That is the part I dont understand
how to do...since after retrieving the 1st results, I am not sure how to
search it again.
Ian Lea wrote:
>
> Sorry, I'm not clear what you don't know how to do.
>
>
> To spell out the double search suggestion a bit m
Sorry, I'm not clear what you don't know how to do.
To spell out the double search suggestion a bit more:
QueryParser qp = new QueryParser(...)
Query q1 = qp.parse("+word1 +word2");
TopDocs td1 = searcher.search(q1, ...)
Query q2 = qp.parse("word1 word2");
TopDocs td2 = searcher.search(q2);
S
Hey, thanks for the suggestion.
I think of performing 2 searches as well. Unfortunately I dont know how to
perform a search on the first results return. Could u guide me a little? I
tried to look around for the information but found none
Thanks
Ian Lea wrote:
>
> You could write your own Simila
You could write your own Similarity, extending DefaultSimilarity and
overriding whichever methods will help you achieve your aims.
Or how about running 2 searches, the first with both words required
(+word1 +word2) and then a second search where they aren't both
required (word1 word2). Then merge
hello there
i like to know about the Boosting Search results thing
thanks
--- On Sun, 8/2/09, bourne71 wrote:
From: bourne71
Subject: Re: Boosting Search Results
To: java-user@lucene.apache.org
Date: Sunday, August 2, 2009, 8:14 PM
Thanks for all the reply. It help me to understand problem
Thanks for all the reply. It help me to understand problem better, but is it
possible to create a query that will give additional boost to the results if
and only if both of the word is found inside the results. This will
definitely make sure that the results will be in the higher up of the list.
It might be because there are hardly any documents containing both the
words.
Try exact search: "\"tall fat\""
On Fri, Jul 31, 2009 at 3:31 PM, bourne71 wrote:
>
> Hi, new here.
>
> I recently started using lucene and had encounter a problem.I crawl and
> index a number of documents.
> When i pe
Hi
It's not quite that simple. Other things being equal, results that
match all keywords are likely to come first but there are other
factors such as term frequency and the length of the document.
Searcher.explain() will give you the gory details. Luke will let you
see what is in your index.
> When i perform a search, lets say "tall fat", by right the
> results that matches all the keyword should be on top and display first.
Answer of your question lies at the end of this thread:
http://www.nabble.com/Generating-Query-for-Multiple-Clauses-in-a-Single-Field-td24694748.html
Thanks a lot. That was it: new times:
4ms -> mysql
2-4ms -> lucene
Now I tried a few times, with a pause and and open index so it would
simulate the correct behaviour during a server usage of my index.
Regards
On Fri, May 16, 2008 at 2:25 PM, Karl Wettin <[EMAIL PROTECTED]> wrote:
>
> 16 maj
You may need some more data to really compare the performance.
>From previous experience, I would expect MySql's search time would increase
as data grows, but Lucene's time stays almost unchanged.
--
Chris Lu
-
Instant Scalable Full-Text Search On Any Database/Application
16 maj 2008 kl. 19.20 skrev Vinicius Carvalho:
I know its a dumb test
There is a lot of initial latency. You want to "warm" the index.
but what can be done in order to speed things up?
http://wiki.apache.org/lucene-java/BasicsOfPerformance
karl
12 matches
Mail list logo