[
https://issues.apache.org/jira/browse/SOLR-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13765901#comment-13765901
]
Linas Juškevičius edited comment on SOLR-1387 at 9/12/13 9:19 PM:
------------------------------------------------------------------
{quote}I don't see a reason as to why the case filter be there. you can always
apply a lower case filter to you field while indexing and searching.{quote}
The reason is very well explained in
[SolrFacetingOverview|http://wiki.apache.org/solr/SolrFacetingOverview#Facet_Indexing]
- faceting is performed on the indexed values and they are returned. I can't
show lowercased values to my users.
A use case - we facet a multivalued field after an "fq" and get thousands of
values. The user gets an infinite scrollable list through the facets but we
also want to let him search. Ideally a search for "states" should match "United
States" which is not supported for two reasons:
- term is not at the beginning of the indexed string
- term and indexed string cases do not match thus prefix filter does not help.
A wildcard search (\*states\*) would help a ton. Regexp may be better but less
performant. Any other ideas?
was (Author: kaukas):
{quote}I don't see a reason as to why the case filter be there. you can
always apply a lower case filter to you field while indexing and
searching.{quote}
The reason is very well explained in
[SolrFacetingOverview|http://wiki.apache.org/solr/SolrFacetingOverview#Facet_Indexing]
- faceting is performed on the indexed values and they are returned. I can't
show lowercased values to my users.
A use case - we facet a multivalued field after an "fq" and get thousands of
facets. The user gets an infinite scrollable list through the facets but we
also want to let him search. Ideally a search for "states" should match "United
States" which is not supported for two reasons:
- term is not at the beginning of the indexed string
- term and indexed string cases do not match thus prefix filter does not help.
A wildcard search (\*states\*) would help a ton. Regexp may be better but less
performant. Any other ideas?
> 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.5, 5.0
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]