I’d look two places:

1> try the admin/analysis page from the admin UI. In particular, look at what 
tokens actually get in the index.

2> again, the admin UI will let you choose the field (alphatitle and title) and 
see what the actual indexed tokens are.

Both have the issue that I don’t know what tokenizer you are using. For sorting 
it better be something
like KeywordTokenizer. Anything that breaks up the input into separate tokens 
will produce surprises.

And unless you have lowercaseFilter in front of your patternreplace, you’re 
removing uppercase characters.

Best,
Erick

> On Jul 15, 2020, at 3:06 PM, David Hastings <hastings.recurs...@gmail.com> 
> wrote:
> 
> howdy,
> i have a field that sorts fine all other content, and i cant seem to debug
> why it wont sort for me on this one chunk of it.
> "sort":"alphatitle asc", "debugQuery":"on", "_":"1594733127740"}}, "response
> ":{"numFound":3,"start":0,"docs":[ { "title":"Money orders", {
> "title":"Finance,
> consolidation and rescheduling of debts", { "title":"Rights in former
> German Islands in Pacific", },
> 
> its using a copyfield from "title" to "alphatitle" that replaces all
> punctuation
> pattern: ([^a-z])replace: allclass: solr.PatternReplaceFilterFactory
> 
> and if i use just title it flips:
> 
> "title":"Finance, consolidation and rescheduling of debts"}, { "title":"Rights
> in former German Islands in Pacific"}, { "title":"Money orders"}]
> 
> and im banging my head trying to figure out what it is about this
> content in particular that is not sorting the way I would expect.
> don't suppose someone would be able to lead me to a good place to look?

Reply via email to