RE: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Uwe Schindler
Erickson > > Cc: java-user > > Subject: Re: Lucene 5.0.0 - StringField and Sorting > > > > Hi Erick, > > > > i guess you've muddled the lists - this is lucenes one, not solr. I know > > how to define it in solr but that wasn't the question as i am

RE: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Uwe Schindler
hi.de > -Original Message- > From: Torsten Krah [mailto:krah...@gmail.com] > Sent: Monday, April 25, 2016 6:25 PM > To: Erick Erickson > Cc: java-user > Subject: Re: Lucene 5.0.0 - StringField and Sorting > > Hi Erick, > > i guess you've muddled the lists -

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Torsten Krah
Thanks for going to fix the stale docs. Torsten Am Montag, den 25.04.2016, 11:09 -0400 schrieb Michael McCandless: > The Lucene level javadocs are definitely stale ... I'll fix. > > > You should separately add a SortedDocValuesField if you also need to > sort on this field. > > Mike McCandless

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Torsten Krah
Hi Erick, i guess you've muddled the lists - this is lucenes one, not solr. I know how to define it in solr but that wasn't the question as i am using pure lucene and it did not work as expected from the javadocs there. Cheers Torsten --

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Gimantha Bandara
Yep.. adding a SortedDocValuesField did work for me! thanks.. On Mon, Apr 25, 2016 at 8:39 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > The Lucene level javadocs are definitely stale ... I'll fix. > > You should separately add a SortedDocValuesField if you also need to sort > on t

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Michael McCandless
The Lucene level javadocs are definitely stale ... I'll fix. You should separately add a SortedDocValuesField if you also need to sort on this field. Mike McCandless http://blog.mikemccandless.com On Fri, Mar 6, 2015 at 5:04 AM, Torsten Krah wrote: > Hi, > > looking at the JavaDoc of StringFi

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Erick Erickson
This works fine for me in a current Solr (5x). What version are you using? Note that _any_ field you use for sorting _must_ be indexed="true" or, in recent Solrs, docValues="true", just like any other field. You can't sort on a field that only has stored='"true" which is the only bit of the field

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Torsten Krah
Hi, unfortunately i did not and no one did answered to this yet - although javadoc states it should work it does not. In the meantime i've used my own custom field but still i am interested on a solution to this. Lucene 6 still does have the same javadoc: https://lucene.apache.org/core/6_0_0/cor

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-21 Thread Gimantha Bandara
Hi Torsten, Did you find a solution for this? I am having the same issue.. I am planning to create a custom Field with DocValueType.SORTED. Is there any other way to do that without creating a custom Field? On Fri, Mar 6, 2015 at 3:34 PM, Torsten Krah wrote: > Hi, > > looking at the JavaDoc of

Lucene 5.0.0 - StringField and Sorting

2015-03-06 Thread Torsten Krah
Hi, looking at the JavaDoc of StringField it says: /** A field that is indexed but not tokenized: the entire * String value is indexed as a single token. For example * this might be used for a 'country' field or an 'id' * field, or any field that you intend to use for sorting * or access

Lucene 5.0.0 - StringField and Sorting

2015-02-27 Thread Torsten Krah
Hi, looking at the JavaDoc of StringField it says: /** A field that is indexed but not tokenized: the entire * String value is indexed as a single token. For example * this might be used for a 'country' field or an 'id' * field, or any field that you intend to use for sorting * or access