Hello.
I repost here this question I posted at
http://stackoverflow.com/questions/1122 ... defined-wiI use hibernate search 4.1.0 with good results except for this problem. I´m trying to perform a range search in a column defined:
Code:
@Field(name = "startTime", store = Store.YES)
@NumericField
public Float startTime;
I have stored an item with startTime = 0.0f;
then I try to perform a range query:
Code:
NumericRangeQuery<Float> rangeQuery = NumericRangeQuery.newFloatRange(
"startDate", -100000.0f, +100000.0f, true, true);
FullTextQuery fullTextQuery = fullTextEntityManager
.createFullTextQuery(rangeQuery, Item.class);
results = fullTextQuery.getResultList();
First: I have no results.
Second: Inspecting the index with lukeall, I see simply stored what seems to be the toString() [judging by other experiments too], which looks not normal...
I feel like I´m missing something, any help would be appreciated. Thanks