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
; }
> }
>
> 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
>
> > 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:
> > >
- 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.
&
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
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
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
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
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
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
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
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;
12 matches
Mail list logo