Is there anything I can do to pass my Unit-Test ?
Or it is impossible ?
Thanks a lot,
Fabrice
Fabrice Robini wrote:
>
> Hi Srikant,
>
> I really thank you for your reply, it's very interesting.
> I have to say I am confused with that now...
> I do not know what I
r observation is
> trivial.
>
> Rather, the contrary. Hope there will be more activity on this topic
> because it is an issue of computing relevance which is the core of search.
>
> Cheers,
> Srikant
>
> Fabrice Robini wrote:
>> Oooops sorry, bad cut/past
Jakilinki-3 wrote:
>
> Well, I cant seem to even get past the assertions of this code.
>
> The first assertion is failing in that I get 0 hits. I am using
> SimpleAnalyzer since I do not have a FrenchAnalyzer.
>
> Any thoughts?
> Srikant
>
> Fabrice Robini wrote:
&g
Hits hits = searcher.search(queryParser.parse("x"));
assertEquals(2, hits.length());
assertEquals("BIG_SUITE", hits.doc(0).get("NAME"));
assertEquals("SHORT_SUITE", hits.doc(1).get("NAME"));
}
Is there anything wrong ?
Thanks a lot,
F
Hi,
I've tried the "fair" similarity described here
(http://www.nabble.com/a-%22fair%22-similarity-to5806739.html#a5806739) with
lucene 2.2 but it does not seems to work.
I've attached the custom "MyFair" similarity to both IndexWriter and
IndexSearcher.
Do you have any idea ?
Thanks a lot,
F
Hi,
I've tried this "fair" similarity with lucene 2.2 but it does not seems to
work.
I've attached the custom "MyFair" similarity to bith IndexWriter and
IndexSearcher.
Do you have any idea ?
Thanks a lot,
Fabrice
Daniel Naber-5 wrote:
>
> Hi,
>
> as some of you may have noticed, Lucene p
earcher in Servlet
On Jun 27, 2006, at 5:47 AM, Fabrice Robini wrote:
> What is your advice for webApplication ?
It all depends :)
> - IndexSearcher pool ?
No point in that. A single IndexSearcher for searches is all that is
ever needed. Having a warming IndexSearcher, as Solr imp
rvlet
On Jun 27, 2006, at 5:47 AM, Fabrice Robini wrote:
> What is your advice for webApplication ?
It all depends :)
> - IndexSearcher pool ?
No point in that. A single IndexSearcher for searches is all that is
ever needed. Having a warming IndexSearcher, as Solr implements,
makes se
:-)
>> >
>> >
>> > The method that i am adopting is, i'll create a pool of
>> > static searchers.
>> > and on every request the servlet will request a free searcher
>> > object from the pool. When he is done with that pool. it'll
>>
When he is done with that pool. it'll return back the searcher
object to that pool. This way i'll reuse my searcher objects.
On 6/27/06, Fabrice Robini <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
>
>
> I have a question about the IndexSearcher().
>
> I have
Hello,
I have a question about the IndexSearcher().
I have a Servlet that has a searchDocument(String theQuery) method.
These method instantiate a new IndexSearcher at each query:
searchDocument(String theQuery)
{
Searcher searcher = new IndexSearcher(indexPath);
11 matches
Mail list logo