Have you thought about EdgeNgramTokenFilter? You’d have to use KeywordTokenizer on a text type rather than a string. The idea would be to enforce some reasonable length limit on the input, say 16 characters (straw man). This is on the _index_ side.
Then for querying, do not use EdgeNgramTokenFilter, rather use TruncateTokenFilter to the same limit as above and boost the heck out of it. This’ll be significantly more performant since it’s a simple token match, admittedly also making your index larger. Best, Erick > On Feb 9, 2020, at 5:04 AM, Yirmiyahu Fischer <yfisc...@signature-it.com> > wrote: > > Posted a bounty on the question > https://stackoverflow.com/questions/59811749/prioritizing-search-results-in-solr-that-start-with-the-search-string > Would appreciate some input.