facet.prefix with regex pattern

2017-09-16 Thread vobium

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


i want facet of only that consist 2007 substring in it
means 
abc@2007@www (2)
@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

2017-09-16 Thread Sathiya N Sundararajan
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