You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Erik Hatcher <er...@ehatchersolutions.com> on 2007/01/20 03:31:53 UTC
copyField: wildcard to wildcard
I don't _think_ this is currently possible, but it might be a slick
thing to add...
<copyField source="*_facet" dest="*_sort"/>
where *_sort could be defined as:
<dynamicField name="*_sort" type="lowercased" indexed="true"/>
("lowercased" is just something I made up for this e-mail, but could
be a type that simply emits a single token, lowercased from the
original)
The pattern in the source that matches "*" would be substituted as
the field name into dest's "*" in order to look up its configuration.
Not currently possible, right? But maybe a useful enhancement?
Erik
Re: copyField: wildcard to wildcard
Posted by Yonik Seeley <yo...@apache.org>.
On 1/19/07, Erik Hatcher <er...@ehatchersolutions.com> wrote:
> I don't _think_ this is currently possible, but it might be a slick
> thing to add...
>
> <copyField source="*_facet" dest="*_sort"/>
I'm pretty sure not... according to http://issues.apache.org/jira/browse/SOLR-21
> where *_sort could be defined as:
>
> <dynamicField name="*_sort" type="lowercased" indexed="true"/>
>
> ("lowercased" is just something I made up for this e-mail, but could
> be a type that simply emits a single token, lowercased from the
> original)
>
> The pattern in the source that matches "*" would be substituted as
> the field name into dest's "*" in order to look up its configuration.
>
> Not currently possible, right? But maybe a useful enhancement?
Yep.
-Yonik