Re: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-16 Thread Lance Norskog
The RAMDirectory uses Java memory, an FSDirectory does not. Holding Java memory makes garbage collection work harder. The operating system is very very good at managing disk buffers, and does a better job using spare memory than Java does. For real-world sites, RAMDirectory is almost always useles

Re: Coloring search results based on score?

2011-06-16 Thread Andrzej Bialecki
On 6/17/11 12:29 AM, Itamar Syn-Hershko wrote: No, that was not what I meant. I'm not interested in coloring the actual text, but in giving the user an indication of how relevant the results are. Instead of displaying the result score, I want to give some visual meter to show that. The highest

Re: Coloring search results based on score?

2011-06-16 Thread Itamar Syn-Hershko
No, that was not what I meant. I'm not interested in coloring the actual text, but in giving the user an indication of how relevant the results are. Instead of displaying the result score, I want to give some visual meter to show that. The highest ranking result will be green if the it is rea

Re: Coloring search results based on score?

2011-06-16 Thread Mark Harwood
See Highlighter's GradientFormatter Cheers Mark On 16 Jun 2011, at 22:01, Itamar Syn-Hershko wrote: > Hi all, > > > Interesting question: is it possible to color search results in a web-page > based on their score? e.g. most relevant results in green, and then different > shades through ora

Coloring search results based on score?

2011-06-16 Thread Itamar Syn-Hershko
Hi all, Interesting question: is it possible to color search results in a web-page based on their score? e.g. most relevant results in green, and then different shades through orange, yellow, red and then white. Theoretically, one could take the highest score and color based on proximity /

Re: RemoteSearchable deprecated. What to replace it with?

2011-06-16 Thread Israel Tsadok
Great. Thanks!

RE: RemoteSearchable deprecated. What to replace it with?

2011-06-16 Thread Uwe Schindler
You have to implement it yourself. Lucene 3.3 will provide some additions to IndexSearcher to merge TopDocs results from different searchers, but collecting those results and transferring over the network is your task. Or simply use Solr (which is an implementation, to exactly do that). This new AP

Re: RemoteSearchable deprecated. What to replace it with?

2011-06-16 Thread Israel Tsadok
Thanks for answering. If I understand it correctly, I can use IndexSearcher concurrently over many IndexReaders. But since there's no RemoteIndexReader, I'm still left with the same basic problem. How to I search across several servers?

RE: RemoteSearchable deprecated. What to replace it with?

2011-06-16 Thread Sudarsan, Sithu D.
Hi Tsadok, In Lucene 3.1: "MultiSearcher is deprecated; ParallelMultiSearcher has been absorbed directly into IndexSearcher " -Sithu -Original Message- From: Israel Tsadok [mailto:itsa...@gmail.com] Sent: Thursday, June 16, 2011 1:35 AM To: java-user@lucene.apache.org Subject: RemoteS

Re: Changing Boosting that was set at indexing time

2011-06-16 Thread Andrzej Bialecki
On 6/15/11 7:14 PM, liat oren wrote: Ok, thanks a lot On 15 June 2011 11:36, Ian Lea wrote: Don't think so. The boost info is encoded and stored at index time. Boosts that you set are multiplied by lengthNorm and then stored as a coarse-grained float in fieldNorm values. There is a utilit

Re: Boosting a document at query time, based on a field value/range

2011-06-16 Thread Sowmya V.B.
Hi Elmer Thanks for the reply. I now tried giving a NumericRangeQuery. Something like: Query qq = NumericRangeQuery.newDoubleRange(field, frompercent, topercent, true, true); (As suggested in http://lucene.apache.org/java/3_0_3/api/core/org/apache/lucene/search/NumericRangeQuery.html ) However,

Re: Boosting a document at query time, based on a field value/range

2011-06-16 Thread Ian Lea
In your examples the queries are essentially the same, so getting the same results is expected, and getting different scores is also expected since you are boosting in the first and not the second, and the second is using a filter which doesn't contribute to scoring. You'll need to be careful of y

Re: Index size and performance degradation

2011-06-16 Thread Denis Bazhenov
To summarize what was said before. In general, using sharding on single machine does make sense only if using single lucene instance you could not utilize all the hardware on this machine. For it's own lucene does a good job in this area, so I think it's very rarely situation where you really n