Re: changing scoring formula

2008-03-08 Thread John Wang
you can always modify the raw lucene score in the hitCollector. -John On Wed, Mar 5, 2008 at 1:16 PM, sumittyagi <[EMAIL PROTECTED]> wrote: > > is there any way to change the score of the documents. > Actually i want to modify the scores of the documents dynamically, > everytime > for a given que

Re: MultiSearcher to overcome the Integer.MAX_VALUE limit

2008-03-08 Thread Mark Miller
Random text can often be pretty slow when done per word. I think you will have to modify the MultiSearcher a bit. The MultiSearcher takes a global id space and converts to and from an individual Searcher id space. The MultiSearcher's id space is limited to an int as well, but I think if you ch

Date sorting problem [ IndexSearcher | Hits | Sort | Float ]

2008-03-08 Thread legrand thomas
Dear all, I'm trying to sort query results using a date criteria. My dates are stored as "long" in the database (I cannot change this) and indexed as untokenized. The sorted resuIts I get aren't consistent. This problem does not occur if the number are "smaller". Am I doing something wrong ? I

RE: MultiSearcher to overcome the Integer.MAX_VALUE limit

2008-03-08 Thread spring
Does this mean that I cannot search indexes with more than 2 billion docs at all with a single IndexSearcher? > -Original Message- > From: Mark Miller [mailto:[EMAIL PROTECTED] > Sent: Samstag, 8. März 2008 18:57 > To: java-user@lucene.apache.org > Subject: Re: MultiSearcher to overcome

Re: MultiSearcher to overcome the Integer.MAX_VALUE limit

2008-03-08 Thread Yonik Seeley
On Sat, Mar 8, 2008 at 2:06 PM, <[EMAIL PROTECTED]> wrote: > Does this mean that I cannot search indexes with more than 2 billion docs at > all with a single IndexSearcher? Right... but trust me, you really wouldn't want to. You need distributed search at that level anyway. -Yonik --

RE: MultiSearcher to overcome the Integer.MAX_VALUE limit

2008-03-08 Thread spring
> Right... but trust me, you really wouldn't want to. You need > distributed search at that level anyway. Hm, 2 billion small docs are not so much. Why do I need distributed search and what exactly do you means with distributed search? Multiple IndexSearchers? Multiple processes? Multiple machin

Re: Date sorting problem [ IndexSearcher | Hits | Sort | Float ]

2008-03-08 Thread Erick Erickson
I'm pretty sure your problem is that you're sorting as a Float. The three values you use all are evaluated (according to the Sort doc) by Float.valueOf. which is 1.20500099E12 for all three values you use. Why are you using Float as your sortField? If your DATE fields are normalized, string sortin