On 7/17/07, Doğacan Güney <[EMAIL PROTECTED]> wrote:
Hi all,

Is there a way to pass arguments to analyzers per document? Let's say
that I have a field "foo" which is tokenized by WhitespaceTokenizer
and then filtered by MyCustomStemmingFilter. MyCustomStemmingFilter
can stem more than one language but (obviously) it needs to know the
language of the document it is working on. So what I need is to
specify the language per document (actually per field).

Here is an example:
<doc>
   <field name="....
    .....
    <field name="foo" lang="en">My spam egg bars baz.</field>
</doc>

Is something like this possible with Solr?

You can pass extra args to a factory in the field-type definition, but
that means you would need a separate field-type per language.

-Yonik

Reply via email to