You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by vobium <ch...@gmail.com> on 2017/09/16 14:02:44 UTC

facet.prefix with regex pattern

it is  facet.prefix work  with regular expression 
suppose my filed contain sunch type of string
abc@2007@www
rrr@2008@ggg
tttt@2007@fff


i want facet of only that consist 2007 substring in it
means 
abc@2007@www (2)
tttt@2007@fff(1)
but not getting o/p using prefix 





--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: facet.prefix with regex pattern

Posted by Sathiya N Sundararajan <au...@gmail.com>.
The facet.prefix parameter limits the terms on which to facet to those
*starting with the given string prefix*.

It appears that you are looking to find it based on sequence of characters
appears in the middle of the string, this goes against the *facet.prefix*
definition.

Have you considered copying the /my_facet_field/(string field) into
/my_search_field/ (text field; analyzed to suit your search needs); With
that approach you can search in /my_search_field/ and facet on
/my_facet_field/



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html