lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Difference between CategoryPath and Plain FacetFields with hierarchy
Date Fri, 06 Mar 2015 09:33:24 GMT
On Fri, Mar 6, 2015 at 2:04 AM, Gimantha Bandara <gimantha@wso2.com> wrote:

> I am going to use FacetFields/FacetsConfig. So using FacetFields we can
> define a hierarchy like below.
>
> doc.add(new FacetField("Publish Date", "2012", "1", "7"))
>
> Is it possible to use FacetFields like this, as we could do with
> CategoryPath?
>
> doc.add(new FacetField("Publish Date", "2012/1/7"))

I don't think so: you must split it yourself.

Mike McCandless

http://blog.mikemccandless.com

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


Mime
View raw message