You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Sadaf <Sa...@tpsgc-pwgsc.gc.ca> on 2017/01/17 20:37:04 UTC

DrillDownQuery adding more than one filter for a dimension

Hi,

I am using Lucene4.4. I am using the SimpleFacetsExample that is in the
demo. DrillDownQuery works fine when I have only one filter. But, then I
tried to add another filter:
My code:
    q.add(new CategoryPath("Date/2010", '/')); 
    q.add(new CategoryPath("Date/2012", '/')); 

I got this error: "java.lang.IllegalArgumentException: dimension 'Date' was
already added"

So, I tried the Lucene4.8 SimpleFacetsExample from the demo. In this
version, I was able to add more filters, and everything worked nicely:
	       q.add("Date", "2010");
	       q.add("Date", "2012");

Do I have to upgrade to 4.8 to be able to use more than one filter? We have
a huge application, and the upgrade won't be straightforward. Is there a way
I can do this with Lucene4.4? If we do upgrade, do we have to upgrade to 4.8
or can I upgrade to a lower version (4.7?) so that I have to make fewer
changes? We have a tight deadline and I really appreciate the help.




--
View this message in context: http://lucene.472066.n3.nabble.com/DrillDownQuery-adding-more-than-one-filter-for-a-dimension-tp4314427.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org