Re: Retrieving a field from all result docuemnts couple of more queries

2009-09-17 Thread Chris Hostetter
: 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

Re: Retrieving a field from all result docuemnts couple of more queries

2009-09-17 Thread Shashikant Kore
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() {

Re: Retrieving a field from all result docuemnts couple of more queries

2009-09-16 Thread abhay kumar
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

Re: Retrieving a field from all result docuemnts couple of more queries

2009-09-16 Thread Shashikant Kore
Thanks, Abhay. Can someone please throw light on how to disable scoring? --shashi On Wed, Sep 16, 2009 at 11:55 AM, abhay kumar abhay...@gmail.com 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        

Re: Retrieving a field from all result docuemnts couple of more queries

2009-09-16 Thread rajan chandi
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

Re: Retrieving a field from all result docuemnts couple of more queries

2009-09-16 Thread Shashikant Kore
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 chandi.ra...@gmail.com wrote: You might be talking

Re: Retrieving a field from all result docuemnts couple of more queries

2009-09-16 Thread rajan chandi
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 shashik...@gmail.comwrote: No, I don't wish to put a custom Similarity. Rather, I want an equivalent of