[ https://issues.apache.org/jira/browse/SOLR-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doğacan Güney updated SOLR-313: ------------------------------- Attachment: schema.xml stem-example.xml solr_document_meta.patch An kind-of-ugly hackish solution (suggested by Yonik Seeley [who also noted that it is hackish] on the mailing list) that adds a globally accessible thread local MetaParams class. This patch also adds a MultiLingualStemFilterFactory that reads language information from metadata and returns that language's SnowballFilter. To pass extra information during indexing, one can add it like this: <doc> <field ... ... <meta name="language" content="German"/> </doc> And to pass extra information during search time, one can add it like this: http://localhost:8993/solr/select?q=........&meta.language=German Prefix "meta." is used to avoid conflicts with other query parameters. Also attached is a sample document and schema for testing. > Document-level metadata support > ------------------------------- > > Key: SOLR-313 > URL: https://issues.apache.org/jira/browse/SOLR-313 > Project: Solr > Issue Type: New Feature > Components: search > Reporter: Doğacan Güney > Priority: Minor > Attachments: schema.xml, solr_document_meta.patch, stem-example.xml > > > See discussion here: > http://www.nabble.com/Passing-arguments-to-analyzers-t4096382.html > The idea is to add metadata to documents (besides fields) and enable > analyzers to access this metadata. A simple use case may be putting language > information in document metadata and stemming document fields according to > language. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.