Re: sorting help

2020-07-15 Thread Dave
That’s a good place to start. The idea was to make sure titles that started with a date would not always be at the forefront and the actual title of the doc would be sorted. > On Jul 15, 2020, at 4:58 PM, Erick Erickson wrote: > > Yeah, it’s always a question “how much is enough/too much”.

Re: sorting help

2020-07-15 Thread Erick Erickson
Yeah, it’s always a question “how much is enough/too much”. That looks reasonable for alphatitle, but what about title? Your original question was that the sorting changes depending on which field you sort on. If your title field uses something that tokenizes or doesn’t include the same analysis

Re: sorting help

2020-07-15 Thread David Hastings
thanks, ill check the admin, didnt want to send a big clock of text but: - - Tokenizer: org.apache.lucene.analysis.core.KeywordTokenizerFactoryclass: solr.KeywordTokenizerFactoryluceneMatchVersion: 7.1.0 - Token Filters:

Re: sorting help

2020-07-15 Thread Erick Erickson
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

sorting help

2020-07-15 Thread David Hastings
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,

Edismax sorting help

2011-06-09 Thread Denis Kuzmenok
Hi, everyone. I have fields: text fields: name, title, text boolean field: isflag (true / false) int field: popularity (0 to 9) Now i do query: defType=edismax start=0 rows=20 fl=id,name q=lg optimus fq= qf=name^3 title text^0.3 sort=score desc pf=name bf=isflag sqrt(popularity) mm=100%

Re: Edismax sorting help

2011-06-09 Thread Yonik Seeley
2011/6/9 Denis Kuzmenok forward...@ukr.net: Hi, everyone. I have fields: text fields: name, title, text boolean field: isflag (true / false) int field: popularity (0 to 9) Now i do query: defType=edismax start=0 rows=20 fl=id,name q=lg optimus fq= qf=name^3 title text^0.3

Re: Edismax sorting help

2011-06-09 Thread Denis Kuzmenok
Your solution seems to work fine, not perfect, but much better then mine :) Thanks! If i do query like Samsung i want to see prior most relevant results with  isflag:true and bigger popularity, but if i do query like Nokia 6500  and  there is isflag:false, then it should be higher because

Re: custom sorting / help overriding FieldComparator

2010-09-17 Thread Chris Hostetter
Brad: 1) if you haven't already figured this out, i would suggest emailin the java-user mailing list. It's got a bigger collection of users who are familiar with the internals of the Lucnee-Java API (that's the level it seems like you are having difficulty at) 2) Maybe you mentioned your

custom sorting / help overriding FieldComparator

2010-09-09 Thread Brad Dewar
Hi I'm trying to get my (overly complex and strange) product IDs sorting properly in Solr. Approaches I've tried so far, that I've given up on for various reasons: --Normalizing/padding the IDs so they naturally sort alphabetically/alphanumerically. --Splitting the ID into multiple Solr fields