Hello,
I´m a newbie in hibernate search and I´m getting some trouble on searching for alphanumeric fields.
I have a class with a String attribute named 'code':
Code:
@Field(name="code", index=Index.TOKENIZED)
private String code;
Searching for regular string values it works fine, and I get correct results when this attribute is set, for example, as:
"project" (query="+code:project")
"project one" (query="+code:'project one'")
"project 1" (query="+code:'project 1'")
This makes me think the mapping is correct.
But, when I just put numbers and letters together in the attribute value, it just doesn´t work, as:
"proj1" (query=+code:proj1), (query=+code:'proj1') for example.
"proj1test" (query=+code:proj1test)
I have already tried Index.TOKENIZED, Index.UN_TOKENIZED and Index.NO_NORMS, but it didn´t work.
Thanks in advance.
Best regards,
Diogo