spaziocodice / SolRDF

An RDF plugin for Solr
Apache License 2.0
114 stars 20 forks source link

SELECT doesn't work with boolean, numeric and date object literals #74

Closed agazzarini closed 9 years ago

agazzarini commented 9 years ago

The problem is: the QueryBuilder always uses a TermQuery for building the query expression. While for "o_s" things are working beacuse search terms are effectively converted in "TermQuery", for numeric a NumericRangeQuery should be used, for booleans a TermQuery with "T" or "F" and for dates something like TrieDateField.getRangeQuery

agazzarini commented 9 years ago

Numeric, strings (and untyped) and boolean fields are ok. Dates still to be fixed.

agazzarini commented 9 years ago

Issue is fixed as also queries on the remaining field type (date / datetime) has been fixed.