Hi Ganesh,
I have already tried my own comparator, below is my code :
SortComparator comparator = new SortComparator() {
@Override
protected Comparable getComparable(String arg0) {
final String str = arg0;
Co
You need to write your own sort comparator
SortField(String field, SortComparatorSource comparator)
Regards
Ganesh
- Original Message -
From: "naveen.quill" <[EMAIL PROTECTED]>
To:
Sent: Friday, November 21, 2008 11:27 AM
Subject: how to sort the result by ignoring case in lucene
Hi,
I have a query regarding the sorting techniques in the lucene i.e
if i apply the sort method to the search results, lucene is sorting the
results by, without ignoring case, so, how to apply the sort technique that
it should sort by ignoring case
i.e :
if the results value are : {ACB, abc, a
Hello all,
I am planning to use Filter for UserID and Date. I will not be able to cache
the Filter. I have to create this filter for every request. To my knowledge,
Filter will give faster results, only if it is cached.
Is it a good idea to use a filter or better to use query?
Regards
Ganesh
Hi Sergey,
On 11/20/2008 at 9:30 AM, Sergey Kabashnyuk wrote:
> How can I convert java.math.BigDecimal numbers in to string
> for its storing in lexicographical order
Here's a thoroughly untested idea, cribbing some from
o.a.l.document.NumberTools[1]: convert BigDecimals into strings of the
fol
Sergey Kabashnyuk schrieb:
Unfortunately, I have to index any possible number of
java.math.BigDecimal
Hi Sergey,
quite a lot of numbers are possible for BigDecimal. Somehow the range
must be bounded.
Let's first draw the line where, for a given BigDecimal bd, the result
of bd.toString(), whic
hi,
thanks for your suggestions.
actually, my original idea is that the same term may have different "weight"
in different doc.
of course the TF/IDF has already embedded some kind of term relavance to a
doc.
But I would like to explicitly set different "weight" to the same term in
diferent docs.
Thanks for the update, Mark. I guess that means I'll have to do the sorting
myself - that shouldn't be too hard, but the annoying part would just be
knowing where one result ends and the next begins since there's no guarantee
that they'll always be the same. Let me know if you find any information
Yeah, discussion came up on order and I believe we punted - its up to
you to track order and sort at the moment. I think that was to prevent
those that didnt need it from paying the sort cost, but I have to go
find that discussion again (maybe its in the issue?) I'll look at the
whole idea agai
On Wed, Nov 19, 2008 at 12:33 PM, Greg Shackles <[EMAIL PROTECTED]> wrote:
> In the searching phase, I would run the search across all page documents,
> and then for each of those pages, do a search with
> PayloadSpanUtil.getPayloadsForQuery that made it so it only got payloads for
> each page at
This lives under contrib/queries, in both 2.3 and 2.4?
Mike
Ganesh wrote:
In v2.4, TermsFilter class is not available in
org.apache.lucene.search.TermsFilter
Regards
Ganesh
Send instant messages to your online friends http://in.messenger.yahoo.com
--
Hi Lin,
I guess you are looking at document boosting, if 'm right, you could
conditionally do this:
doc.setBoost(boostFactor);
where boostFactor is a float > 1.0 that boosts the doc with the boost
factor.
Also, you could also use
field.setBoost (boostValue) to boost a particular field in a documen
Thanks Ian
Unfortunately, I have to index any possible number of java.math.BigDecimal
I can rephrase my question this way:
How can I convert java.math.BigDecimal numbers in to string
for its storing in lexicographical order
Sergey Kabashnyuk
eXo Platform SAS
Hi
Lucene only indexes strings.
Hi
Lucene only indexes strings. The standard advice for numeric is to
pad to desired width with leading zeros, if likely to be used in range
searches. How varied are the numbers you're going to be working with?
I only work with stuff with 2 decimal places and tend to lose that.
e.g.
2.22 woul
Hello
I want to ask community an advice:
what is the best way to index and search java.math.BigDecimal values in
lucene 2.4.
Any code snippets are welcome.
Sergey Kabashnyuk
eXo Platform SAS
-
To unsubscribe, e-mail: [EMAIL P
Sorry, I just noticed that my email client decided his answer was junk
mail. Regardless thank you both for your reply.
Diego
-Mensaje original-
De: Erick Erickson [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 20 de noviembre de 2008 10:47 a.m.
Para: java-user@lucene.apache.org
Asunto:
OK, I'll bite. What's unclear about Michael's response
to this question when you asked it yesterday? The
answer is still no today.
Erick
On Thu, Nov 20, 2008 at 9:32 AM, Diego Cassinera <
[EMAIL PROTECTED]> wrote:
> Is there a way to change the value of stored fields that have not been
> indexed
Is there a way to change the value of stored fields that have not been
indexed without having to delete the document and re-index it. The fields I
need to change will always have the same size, however the value may change
every so often. I want to do this to avoid hitting my rdbms to display the
You can do this. It's called adding a Payload. You can add payloads
during Analysis (Token.setPayload()) which means your code below will
need to be changed below such that you use the Field constructor that
takes in a TokenStream and wraps your input tokens. This TokenStream
will also n
No, they should not be compared. Scores are only relative to each
other for that given input query, despite what the queryNorm docs
say. The queryNorm was an attempt at doing it, but my understanding
of the research still indicates they are not comparable.
-Grant
On Nov 18, 2008, at 12:0
In v2.4, TermsFilter class is not available in
org.apache.lucene.search.TermsFilter
Regards
Ganesh
Send instant messages to your online friends http://in.messenger.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Hi Chris,
Its still the same model as far as my knowledge (always better to add the
disclaimer :), though 'm pretty sure )
--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com
The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw
On
Hi
I have not been following Lucene developments for a while ... can
someone please tell me if you can now modify indexes - or is it still
have the "delete old" / "add new" model?
Thanks,
- Chris
--
Chris Bamford
Senior Development Engineer
*Scalix*
[EMAIL PROTECTED]
Tel: +44 (0)1344 381814
23 matches
Mail list logo