Re: Is Fair Similarity working with lucene 2.2 ?

2008-01-24 Thread Fabrice Robini
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

Re: Is Fair Similarity working with lucene 2.2 ?

2008-01-22 Thread Fabrice Robini
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

Re: Is Fair Similarity working with lucene 2.2 ?

2008-01-22 Thread Fabrice Robini
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

Re: Is Fair Similarity working with lucene 2.2 ?

2008-01-22 Thread Fabrice Robini
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

Is Fair Similarity working with lucene 2.2 ?

2008-01-21 Thread Fabrice Robini
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

Re: a "fair" similarity

2008-01-21 Thread Fabrice Robini
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

RE: IndexSearcher in Servlet

2006-06-27 Thread Fabrice Robini
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

RE: IndexSearcher in Servlet

2006-06-27 Thread Fabrice Robini
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

RE: IndexSearcher in Servlet

2006-06-27 Thread Fabrice Robini
:-) >> > >> > >> > 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 >>

RE: IndexSearcher in Servlet

2006-06-27 Thread Fabrice Robini
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

IndexSearcher in Servlet

2006-06-27 Thread Fabrice Robini
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);