On Thu, Mar 5, 2009 at 4:50 AM, Fouad Mardini <f.mard...@gmail.com> wrote:
> Thanks for your help, but I am not really sure I follow.
> It is possible to use the PatternTokenizerFactory with pattern = (\d+)  and
> group = 0 to tokenize the input correctly
> But I don't see how to use the copyField to achieve sorting
>
> <copyField source="myfield" destination="dynamic_#{value of second token}"
> />
> I read the documentation and this does not seem to be possible

copyField myfield -> myfield2
the field type for myfield would keep the first number
the field type for myfield2 would keep the second number

But actually, something like that only works for text field types that
you can specify an analyzer for.  To sort by the integer value, you
need an integer field.

So is there a way for your indexing code to split the numbers before
they are sent to Solr?

> Are there any performance implications on using dynamic fields?
> Could you please elaborate on your idea

Very little to none in most situations.

-Yonik
http://www.lucidimagination.com

Reply via email to