You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Thamizhazhagan B <Th...@kp.org> on 2021/08/26 07:58:13 UTC
Sort results by alphabet at first then numeric
Hi Team,
We have the requirement to sort SOLR search results primarily based on alphabets at first followed by numeric. Currently numeric come at first followed by alphabets. Is there a way to address this.
We have tried to use the below filter. But no use. Can anybody help.
<filter class="solr.PatternReplaceFilterFactory"
pattern="(\d+)" replacement="00000$1" replace="all"
/>
Thanks,
Thamizh
NOTICE TO RECIPIENT: If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them. v.173.295 Thank you.
RE: Sort results by alphabet at first then numeric
Posted by Thamizhazhagan B <Th...@kp.org>.
Hi Team,
Shall I have an update on this please.
Thanks,
Thamizh
From: Thamizhazhagan B
Sent: Thursday, August 26, 2021 3:58 PM
To: users@solr.apache.org
Subject: Sort results by alphabet at first then numeric
Hi Team,
We have the requirement to sort SOLR search results primarily based on alphabets at first followed by numeric. Currently numeric come at first followed by alphabets. Is there a way to address this.
We have tried to use the below filter. But no use. Can anybody help.
<filter class="solr.PatternReplaceFilterFactory"
pattern="(\d+)" replacement="00000$1" replace="all"
/>
Thanks,
Thamizh
NOTICE TO RECIPIENT: If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them. v.173.295 Thank you.