[hibernate-issues] [Hibernate-JIRA] Updated: (HSEARCH-810) @NumericFields with NumericField forName require @Field to use name=
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Wed Dec 14 04:19:19 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik updated HSEARCH-810:
--------------------------------------
Description:
It seems that unless name for the first _ at Field_ is specified range searches on that field will not be numeric
Doesn't work:
{code}
public class TestExampleClass {
@Fields({@Field( index = Index.UN_TOKENIZED),
@Field(name = "quantityFitted_forSort", index = Index.UN_TOKENIZED, store = Store.YES)
})
@NumericFields({ @NumericField(forField = "quantityFitted") })
private Integer quantityFitted;
}
{code}
{code}
public class TestExampleClass {
@Fields({@Field(name = "quantityFitted", index = Index.UN_TOKENIZED),
@Field(name = "quantityFitted_forSort", index = Index.UN_TOKENIZED, store = Store.YES)
})
@NumericFields({ @NumericField(forField = "quantityFitted") })
private Integer quantityFitted;
}
{code}
was:
It seems that unless name for the first _ at Field_ is specified range searches on that field will not be numeric
Doesn't work:
{code}
public class TestExampleClass {
@Fields({@Field( index = Index.UN_TOKENIZED),
@Field(name = "quantityFitted_forSort", index = Index.UN_TOKENIZED, store = Store.YES)
})
@NumericFields({ @NumericField(forField = "quantityFitted") })
private Integer quantityFitted;
}
{code}
public class TestExampleClass {
@Fields({
@Field(name = "quantityFitted", index = Index.UN_TOKENIZED),
@Field(name = "quantityFitted_forSort", index = Index.UN_TOKENIZED, store = Store.YES) })
@NumericFields({ @NumericField(forField = "quantityFitted") })
private Integer quantityFitted;
}
> @NumericFields with NumericField forName require @Field to use name=
> --------------------------------------------------------------------
>
> Key: HSEARCH-810
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-810
> Project: Hibernate Search
> Issue Type: Bug
> Affects Versions: 3.4.0.Final
> Reporter: Izaak Alpert
> Priority: Minor
> Fix For: 4.1
>
>
> It seems that unless name for the first _ at Field_ is specified range searches on that field will not be numeric
> Doesn't work:
> {code}
> public class TestExampleClass {
> @Fields({@Field( index = Index.UN_TOKENIZED),
> @Field(name = "quantityFitted_forSort", index = Index.UN_TOKENIZED, store = Store.YES)
> })
> @NumericFields({ @NumericField(forField = "quantityFitted") })
> private Integer quantityFitted;
> }
> {code}
> {code}
> public class TestExampleClass {
> @Fields({@Field(name = "quantityFitted", index = Index.UN_TOKENIZED),
> @Field(name = "quantityFitted_forSort", index = Index.UN_TOKENIZED, store = Store.YES)
> })
> @NumericFields({ @NumericField(forField = "quantityFitted") })
> private Integer quantityFitted;
> }
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list