Hi Rajnish
It is not advisable to index values with two data types in a field.
Features like phrase query, sorting may break in those indexes.
related previous discussion :
http://www.gossamer-threads.com/lists/lucene/java-user/289159?do=post_view_flat#289159
-
Kumaran R
On Fri, Nov 4,
Hi
Is it advisable to store and index values of different datatype under same
field as follows
Field field = new LongField("*region*", 10L, Field.Store.YES);
doc.add(field);
Field field1 = new StringField("*region*", "NORTH", Field.Store.YES);
doc.add(field1);
Our field "region" can have numeric