Hello,
I have a field :
Quote:
@Field(index=Index.TOKENIZED, store=Store.YES)
private String titre;
I have an error :
Quote:
java.lang.RuntimeException: there are more terms than documents in field "titre", but it's impossible to sort on tokenized fields
org.apache.lucene.search.FieldCacheImpl$6.createValue(FieldCacheImpl.java:287)
org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:72)
...
When I insert 2 documents with the field "titre" = "un truc" and the other "un machin".
When I want to Sort the results by "titre" field, the error appears.
I tried to use Index.UN_TOKENIZED but I can't search for tokens like "un" or "truc" :S
Do you have an idea ?
Thank you.