I think there's a better way - using SpanFirstQuery.
This query scores higher a term positioned closer to the beginning of a
document.
Assume your resolution is 1%, i.e. 1 to 100, create the percentage field
with max token position 99. Generate the tokens such that all IDs with
percentage 100 wo
Thanks for your reply. We have currently thought about both of these
approaches, so that definitely makes me feel better about things. The first
approach you had mentioned, we had thought about our tagging problem and how
to make a product tag come to the top, but again, with a lot of tags, the
da
On Fri, Dec 15, 2006 at 04:01:33PM +0530, Kapil Chhabra said:
> I have implemented such a feature. Just to add on to what Bhavin said,
> your results would be more relevant if you index only 2 & 3 token
> phrases and display a 3 token suggestion if the current search keyword
> consists of 2 toke
I think the right solution for this would use "payloads", where extra data
can be added for each index token. However Lucene currently does not
support this. Without this I can think of two options, each with its own
disadvantage:
1) more tokens at indexing time - decide on the resolution of the
p
So, I am still new to Lucene, so please take this into consideration when
reading this. Up until now, a novice like myself has been able to finagle
Lucene into doing what we want. But now we have a problem that I have been
searching for the answer to. We allow users to profile our products with a
Hi,
About 2-3 weeks ago I emailed about a memory leak in my application. I then
found some problems in my code (I wasn't closing IndexSearchers explicitly) and
took care of those. Now I see my app is still leaking memory - jconsole
clearly shows the "Tenured Gen" memory pool getting filled up
Hi Hoss,
Exactly in this scenario, I would love to use my custom generated document
id.
The array reference number is MyId & its value is some-interested-value
matched to MyID.
So,how can I generate custom document id.?
Jelda
> -Original Message-
> From: Chris Hostetter [mailto:[EMAIL PR
Exactly.
I have implemented such a feature. Just to add on to what Bhavin said,
your results would be more relevant if you index only 2 & 3 token
phrases and display a 3 token suggestion if the current search keyword
consists of 2 tokens and so on.
Any suggestion beyond 3 tokens might not be ve
In my applications, I have stored the dates as MMDD to make it
simple and easy. Works just fine for me.
regards,
kapilChhabra
Cam Bazz wrote:
Hello,
how can I make a query to bring documents between timestamp begin and
timestamp end, given that I have stored my dates using
DateTools.timeT