[
https://issues.apache.org/jira/browse/SOLR-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan McKinley updated SOLR-357:
-------------------------------
Attachment: SOLR-357-PrefixingFilter.patch
Adds a filter and adds it to the examples:
<fieldType name="prefixing" class="solr.TextField" positionIncrementGap="1">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.PrefixingFilterFactory" maxLength="25"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory" />
</analyzer>
</fieldType>
------------------------
With the example docs, I search for "ca" and get everything with a token that
starts with "ca"
Any idea how I can get this to sort by:
1. values that start with the prefix before values that just contain the
prefix. That is:
"Canon PIXMA ... " before " .... video card"
2. When matching multiple tokens, rank values where the matched tokens are
closer together higher.
Ideas?
> Prefixing Filter Factory -- for 'suggest'
> ------------------------------------------
>
> Key: SOLR-357
> URL: https://issues.apache.org/jira/browse/SOLR-357
> Project: Solr
> Issue Type: New Feature
> Reporter: Ryan McKinley
> Attachments: SOLR-357-PrefixingFilter.patch
>
>
> The PrefixingFilter builds a token for each prefix in the original token. It
> is appropriate for a type-ahead suggest style function.
> Given the token "solr", this will build a token for "s","so","sol","solr".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.