Search in a specific ScoreDoc result

2013-09-17 Thread David Miranda
Hi, I want to do a kind of 'facet search', that initial research in a field of all documents in the Lucene index, and second search in other field of the documents returned to the first research. Currently I'm do the first research : Query q = new QueryParser(Version.LUCENE_43, "label", analyzer

Re: Lucene Concurrent Search

2013-09-06 Thread David Miranda
; } > } > > Usually does the trick. You need to put some parameters ("indexDir") into > your web.xml and make sure that it knows that SearchListener is a > ServletListener for your Web app. > > But, to re-iterate what someone else said: if you really just want RE

Re: Lucene Concurrent Search

2013-09-05 Thread David Miranda
> > > I use a singleton class but there are other ways in tomcat. Can't > > remember what - maybe application scope. > > > > > > -- > > Ian. > > > > > > On Thu, Sep 5, 2013 at 4:46 PM, David Miranda > > > wrote: > > >

Re: Lucene Concurrent Search

2013-09-05 Thread David Miranda
- Search from 1 Million open source projects. > > > > On Thu, Sep 5, 2013 at 6:46 AM, David Miranda >wrote: > > > Hi, > > > > I'm developing a web application, that contains a REST service in the > > Tomcat, that receives several requests per second. &

Re: Lucene Concurrent Search

2013-09-05 Thread David Miranda
rcherManager sm = new SearcherManager(dir, new SearcherFactory()); > > to get default behaviour. The javadocs for SearcherFactory explain > that you can write your own implementation if you want custom > behaviour such as warming. > > > -- > Ian. > > > On Thu, Sep 5, 2013 a

Lucene Concurrent Search

2013-09-04 Thread David Miranda
Hi, I'm developing a web application, that contains a REST service in the Tomcat, that receives several requests per second. The REST requests do research in a Lucene index, to do this i use the IndexSearch. My questions are: - There are concurrency problems in multiple research? - What the best

Re: Lucene Text Similarity

2013-09-04 Thread David Miranda
st, > >Tim > > > From: Ivan Krišto [ivan.kri...@gmail.com] > Sent: Wednesday, September 04, 2013 3:17 AM > To: java-user@lucene.apache.org > Subject: Re: Lucene Text Similarity > > On 09/03/2013 07:33 PM, David Miranda wrote: > > Is there any wa

Lucene Text Similarity

2013-09-03 Thread David Miranda
Is there any way to check the similarity of texts with Lucene? I have the DBpedia indexed and wanted to get the texts more similar between the abstract and DBpedia another text. If I do a search in the abstract field, with a particular text the result is not very satisfactory. Eg Abstract DBpedia

Re: Searching within a Search Result

2013-08-19 Thread David Miranda
smallest possible > self-contained example that shows the problem. > > > -- > Ian. > > > On Tue, Aug 6, 2013 at 9:55 PM, David Miranda > wrote: > > I experimented with the previous code, but no results are returned from > the > > index. Someone can give me an example? I h

Re: Searching within a Search Result

2013-08-06 Thread David Miranda
I experimented with the previous code, but no results are returned from the index. Someone can give me an example? I have been for some time trying to implement this functionality. Thanks. 2013/8/6 David Miranda > Do this with the BooleanQuery: > >> Query q1 = new QueryParser(Versi

Re: Searching within a Search Result

2013-08-06 Thread David Miranda
e query generated by QueryParser or direct > construction of a TermQuery. See also CachingWrapperFilter if the > index isn't constantly changing. > > > -- > Ian. > > > On Tue, Aug 6, 2013 at 3:19 PM, David Miranda > wrote: > > Hi, > > > > I have a

Searching within a Search Result

2013-08-06 Thread David Miranda
Hi, I have a Lucene index that has the fields label and abstract. I want to do is first do a search by label field, for this i use: TopScoreDocCollector collector = TopScoreDocCollector.create(MAX_HITS, true > ); > searcher.search(q, collector); > ScoreDoc[] hits = collector.topDocs().scoreDocs;