It'll start to get ugly, but simply add clauses to your facet.query.
Note that you
can submit as many facet.query entries as you want. You can also configure
them as defaults in your request handler...

Something like
facet.query=startdate:[* TO NOW] AND enddate:[NOW TO *] AND openingHours:800

Note that I'd leave out the colon for simplicity, but that's up to you...
Best
Erick

On Mon, Jun 20, 2011 at 10:27 AM, roySolr <royrutten1...@gmail.com> wrote:
> with this facet.query=startdate:[* TO NOW] AND enddate:[NOW TO *]  i will get
> all the results??
>
> Now i get the startdate and enddate from my db with the DIH.
>
> My schema.xml looks like this:
>
> <fieldType name="date" class="solr.TrieDateField" omitNorms="true"
> precisionStep="0" positionIncrementGap="0"/>
>
> <field name="startDate" type="date" indexed="true" stored="true"/>
> <field name="endDate" type="date" indexed="true" stored="true"/>
>
> When i use the facet.query i only get a count with companies. What i want is
> a count for openinghours.
> Maybe i forgot something?
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Complex-situation-tp3071936p3086455.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to