: As I mentioned previously, I prefer to do this with as little java
: code as possible. That's the motivation for me to take a look at solr.
I understand, but as i already said "there is no pure configuration way to
obtain the same logic you could get from a custom HitCollector"
you can get th
Hoss,
As I mentioned previously, I prefer to do this with as little java
code as possible. That's the motivation for me to take a look at solr.
Here is the code snippet.
OpenBitSet resultBitset = new OpenBitSet(this.searcher.maxDoc());
this.searcher.search(query, new HitCollector() {
: You will need to get SolrIndexSearcher.java and modify following:-
:
: public static final int GET_SCORES = 0x01;
No. Do not do that. There is no reason for anyone, to EVER modify that
line of code. Absolutely NONE
If you've made that change to your version of Solr,
You will need to get SolrIndexSearcher.java and modify following:-
public static final int GET_SCORES = 0x01;
--Rajan
On Wed, Sep 16, 2009 at 6:58 PM, Shashikant Kore wrote:
> No, I don't wish to put a custom Similarity. Rather, I want an
> equivalent of HitCollector where I
No, I don't wish to put a custom Similarity. Rather, I want an
equivalent of HitCollector where I can bypass the scoring altogether.
And I prefer to do it by changing the configuration.
--shashi
On Wed, Sep 16, 2009 at 6:36 PM, rajan chandi wrote:
> You might be talking about modifying the simi
You might be talking about modifying the similarity object to modify scoring
formula in Lucene!
$searcher->setSimilarity($similarity);
$writer->setSimilarity($similarity);
This can very well be done in Solr as SolrIndexWriter inherits from Lucene
IndexWriter class.
You might want to download
Thanks, Abhay.
Can someone please throw light on how to disable scoring?
--shashi
On Wed, Sep 16, 2009 at 11:55 AM, abhay kumar wrote:
> Hi,
>
> 1)Solr has various type of caches . We can specify how many documents cache
> can have at a time.
> e.g. if windowsize=50
> 50 results
Hi,
1)Solr has various type of caches . We can specify how many documents cache
can have at a time.
e.g. if windowsize=50
50 results will be cached in queryResult Cache.
if user makes a new request to server for results after 50
documents a new request will be sent to
Hi,
I am familiar with Lucene and trying out Solr.
I have index which was created outside solr. The index is fairly
simple with two field - document_id & content. The query result needs
to return all the document IDs. The result need not be ordered by the
score. For this, in Lucene, I use custom