Hi Martijn,
Yes, it is working after making these changes.
--
Thanks
Varun Gupta
On Sun, Dec 20, 2009 at 5:54 PM, Martijn v Groningen
martijn.is.h...@gmail.com wrote:
Hi Varun,
Yes, after going over the code I think you are right. If you change
the following if block in
After a lot of debugging, I finally found why the order of collapse results
are not matching the uncollapsed results. I can't say if it is a bug in the
implementation of fieldcollapse or not.
*Explaination:*
Actually, I am querying the fieldcollapse with some filters to restrict the
collapsing to
I would not expect that Solr 1.4 build is the cause of the problem.
Just out of curiosity does the same happen when collapse.threshold=1?
2009/12/11 Varun Gupta varun.vgu...@gmail.com:
Here is the field type configuration of ctype:
field name=ctype type=integer indexed=true stored=true
When I used collapse.threshold=1, out of the 5 categories 4 had the same top
result, but 1 category had a different result (it was the 3rd result coming
for that category when I used threshold as 3).
--
Thanks,
Varun Gupta
On Mon, Dec 14, 2009 at 2:56 AM, Martijn v Groningen
Hi,
I have documents under 6 different categories. While searching, I want to
show 3 documents from each category along with a link to see all the
documents under a single category. I decided to use field collapsing so that
I don't have to make 6 queries (one for each category). Currently I am
Hi Varun,
Can you send the whole requests (with params), that you send to Solr
for both queries?
In your situation the collapse parameters only have to be used for the
first query and not the second query.
Martijn
2009/12/10 Varun Gupta varun.vgu...@gmail.com:
Hi,
I have documents under 6
Hi Martijn,
I am not sending the collapse parameters for the second query. Here are the
queries I am using:
*When using field collapsing (searching over all categories):*
I tried to reproduce a similar situation here, but I got the expected
and correct results. Those three documents that you saw in your first
search result should be the first in your second search result (unless
the index changes or the sort changes ) when fq on that specific
category. I'm not sure
Here is the field type configuration of ctype:
field name=ctype type=integer indexed=true stored=true
omitNorms=true /
In solrconfig.xml, this is how I am enabling field collapsing:
searchComponent name=query
class=org.apache.solr.handler.component.CollapseComponent/
Apart from this, I