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

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

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-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 Solr,

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 wrote: > No, I don't wish to put a custom Similarity. Rather, I want an > equivalent of HitCollector where I

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 wrote: > You might be talking about modifying the simi

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
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

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

2009-09-15 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 to

Retrieving a field from all result docuemnts & couple of more queries

2009-09-15 Thread Shashikant Kore
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