This may not be all that helpful, but have you looked at edismax?
https://issues.apache.org/jira/browse/SOLR-1553

It allows the full Solr query syntax while preserving the goodness of
dismax.

This is standard equipment on 3.1, which is being released even as we
speak, and I also know it's being used in production situations.

If going to 3.1 is not an option, I know people have applied that patch
to 1.4.1, but haven't done it myself.

Best
Erick

On Mon, Mar 28, 2011 at 4:45 AM, Tom Mortimer <t...@flax.co.uk> wrote:
> Hi,
>
> Here's my problem: I'm indexing a corpus with text in a variety of
> languages. I'm planning to detect these at index time and send the
> text to one of a suitably-configured field (e.g. "mytext_de" for
> German, "mytext_cjk" for Chinese/Japanese/Korean etc.)
>
> At search time I want to search all of these fields. However, there
> will be at least 12 of them, which could lead to a very long query
> string. (Also I need to use the standard query parser rather than
> dismax, for full query syntax.)
>
> Therefore I was wondering if there was a way to copy fields at search
> time, so I can have my mytext query in a single field and have it
> copied to mytext_de, mytext_cjk etc. Something like:
>
>   <copyQueryField source="mytext" dest="mytext_de" />
>   <copyQueryField source="mytext" dest="mytext_cjk" />
>  ...
>
> If this is not currently possible, could someone give me some pointers
> for hacking Solr to support it? Should I subclass solr.SearchHandler?
> I know nothing about Solr internals at the moment...
>
> thanks,
> Tom
>

Reply via email to