Erik Hatcher wrote: > > What field type is chapterTitle? I'm betting it is an analyzed > field with multiple values (tokens/terms) per document. To > successfully sort, you'll need to have a single value per document - > using copyField can help with this to have both a searchable field > and a sortable version. > > Erik >
The parts from schema.xml are: <field name="chapterTitle" type="text" indexed="true" stored="true" multiValued="false"/> Which uses this definition of the field type, which I believe is the 'out of the box' settings. But I could be wrong. <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> </analyzer> </fieldType> Is this of any help? -- View this message in context: http://www.nabble.com/Sort-results-on-a-field-not-ordered-tp17013905p17019099.html Sent from the Solr - User mailing list archive at Nabble.com.