I have a reference field that is pseudo numeric. Sorting alphabetically
produces the wrong results.
e.g. the following values should be sorted like this:
3045.5.2
3045.5.12
3045.15.2
I can't change the reference format - to pad it with zeros.
But I did think I could create a field that was padded with zeros - and
sort using that.
I was hoping I could keep it out of the source document - but I haven't
figured out how I can do some scripted formatting yet - using perhaps a
multi-field.
I would greatly appreciate any cunning tricks that could be used to get
this done.
I have a reference field that is pseudo numeric. Sorting alphabetically produces the wrong results.
e.g. the following values should be sorted like this:
3045.5.2
3045.5.12
3045.15.2
I can't change the reference format - to pad it with zeros.
But I did think I could create a field that was padded with zeros - and sort using that.
I was hoping I could keep it out of the source document - but I haven't figured out how I can do some scripted formatting yet - using perhaps a multi-field.
I would greatly appreciate any cunning tricks that could be used to get this done.
I have a reference field that is pseudo numeric. Sorting alphabetically produces the wrong results.
e.g. the following values should be sorted like this:
3045.5.2
3045.5.12
3045.15.2
I can't change the reference format - to pad it with zeros.
But I did think I could create a field that was padded with zeros - and sort using that.
I was hoping I could keep it out of the source document - but I haven't figured out how I can do some scripted formatting yet - using perhaps a multi-field.
I would greatly appreciate any cunning tricks that could be used to get this done.
I have a reference field that is pseudo numeric. Sorting alphabetically
produces the wrong results.
e.g. the following values should be sorted like this:
3045.5.2
3045.5.12
3045.15.2
I can't change the reference format - to pad it with zeros.
But I did think I could create a field that was padded with zeros - and
sort using that.
I was hoping I could keep it out of the source document - but I haven't
figured out how I can do some scripted formatting yet - using perhaps a
multi-field.
I would greatly appreciate any cunning tricks that could be used to get
this done.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.