Hi, You can also check out LUCENE-3413 [1] and the CombiningFilter that I wrote and associated example. This lets you:
1. perform normal tokenization and analysis in your analysis chain 2. recombine the tokens at the end for sorting purposes HTH, Chris [1] https://issues.apache.org/jira/browse/LUCENE-3413 On Oct 5, 2011, at 12:47 PM, themanwho wrote: > OK, I'm going to answer my own question -- it was probably so obvious that > nobody else wanted answer such an easy one! > > I simply needed to apply > > <filter class="solr.PatternReplaceFilterFactory" > pattern="([^a-z])" replacement="" replace="all" /> > > after > > <filter class="solr.PatternReplaceFilterFactory" > pattern="^the\s" replacement="" replace="first" /> > <filter class="solr.PatternReplaceFilterFactory" > pattern="^a\s" replacement="" replace="first" /> > > instead of before, as I had it originally. Otherwise "the\s" and "a\s" is > never matched! > > Hope this maybe helps somebody else... > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Sorting-by-article-title-tp3396743p3397694.html > Sent from the Solr - User mailing list archive at Nabble.com. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Senior Computer Scientist NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 171-266B, Mailstop: 171-246 Email: chris.a.mattm...@nasa.gov WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Assistant Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++