[ 
https://issues.apache.org/jira/browse/SOLR-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tom Winch updated SOLR-1387:
----------------------------
    Attachment: SOLR-1387.patch

I've been looking at this issue from the use-case of autocompletion, and in 
this case it's very desirable to include completions from the middle of a word. 
I've developed a patch which adds the following faceting parameters:

facet.contains - similar to facet.prefix, but the string supplied may appear 
anywhere in the term
facet.contains.ignoreCase - a Boolean value; if true, the comparison is case 
insensitive

The implementation for facet.contains has been done for the enum, fc, fcs and 
grouped faceting methods. The memory usage and performance is likely to be as 
'bad' as for the same query without the facet.contains restriction (you lose 
the advantage of sorted values that can be leveraged in facet.prefix).

The ignore-case is implemented in terms of UTF-8 case insensitivity so is also 
potentially computationally expensive.

> Add more search options for filtering field facets.
> ---------------------------------------------------
>
>                 Key: SOLR-1387
>                 URL: https://issues.apache.org/jira/browse/SOLR-1387
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Anil Khadka
>             Fix For: 4.9, Trunk
>
>         Attachments: SOLR-1387.patch
>
>
> Currently for filtering the facets, we have to use prefix (which use 
> String.startsWith() in java). 
> We can add some parameters like
> * facet.iPrefix : this would act like case-insensitive search. (or --->  
> facet.prefix=a&facet.caseinsense=on)
> * facet.regex : this is pure regular expression search (which obviously would 
> be expensive if issued).
> Moreover, allowing multiple filtering for same field would be great like
> facet.prefix=a OR facet.prefix=A ... sth like this.
> All above concepts could be equally applicable to TermsComponent.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to