Hello Yonik, 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 Are there any performance implications on using dynamic fields? Could you please elaborate on your idea Thanks again /Fouad On Wed, Mar 4, 2009 at 8:12 PM, Yonik Seeley <yo...@lucidimagination.com>wrote: > On Wed, Mar 4, 2009 at 12:24 PM, Fouad Mardini <f.mard...@gmail.com> > wrote: > > I have a multivalued field in my schema of type text_ws, values are of > the > > form #int #int > > I need to be able to query on the first and sort on the second, this does > > not seem to be enabled out of the box > > Can you put the two numbers in separate fields for this purpose? > If you can't do it from the indexer, a schema with copyField in > conjunction with PatternTokenizerFactory could do it. > > -Yonik > http://www.lucidimagination.com >