count of other terms based on a query
On Fri, Feb 22, 2013 at 6:08 AM, Lars-Erik Aabech
wrote:
> Thanks.
>
> ANDing was what I ment with "combined" queries.
> I think I'll go with that one for now and see how it performs. Not too
> many docs/terms in the index. (~150
I guess it performs alright :P
Overall Elapsed:00:00:00.0290029
(29ms)
Lars-Erik
-Original Message-
From: Lars-Erik Aabech [mailto:l...@markedspartner.no]
Sent: 22. februar 2013 12:09
To: java-user@lucene.apache.org
Subject: RE: Possible to "quickly" fetc
custom collector call .advance on each, for each collected docID, and increment
counts if that term matches that doc.
Or you could just do a separate query for each of the terms of interest AND'd
with your original query.
Mike McCandless
http://blog.mikemccandless.com
On Fri, Feb 2
ld a second index, though..
(I guess I could do a new "combined" query for each term in the set, but if any
other way it'd be nice)
mvh.
Lars-Erik Aabech
Faglig leder utvikling
MarkedsPartner AS
Mobil: +47 920 30 537
A possible workaround could be to modify search terms with wildcard tokens by
stemming them manually and creating a new search string.
Searches for hersen* would be modified to hers* and return what you expect.
Con is of course that you search for more than you specified.
Lars-Erik
> -Origin
luck.
--
Ian.
On Mon, Dec 10, 2012 at 12:09 PM, Lars-Erik Aabech
wrote:
> OK, thanks. As far as I understand, there's no problem performance wise or
> other to use a singleton reader for multiple threads/users, right?
>
> I've considered Solr, but my conclusion is that inst
olr? That would probably take care of most of the
complications pretty much out of the box.
http://lucene.apache.org/solr/features.html
--
Ian.
On Mon, Dec 10, 2012 at 10:31 AM, Lars-Erik Aabech
wrote:
> Hi!
>
> I'm using lucene.net, but I'm sure this question is not pla
searches themselves.
My question is as follows,
Given ~17,000 documents and ~120,000 terms, would you open and close a reader
for each search,
or would you keep a singleton reader and re-open it say every hour?
mvh.
Lars-Erik Aabech
Faglig leder utvikling
MarkedsPartner AS
Mobil: +47 920 30 537