lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattmann, Chris A (388J)" <chris.a.mattm...@jpl.nasa.gov>
Subject Re: Analyzers and sorting with a custom analysis chain
Date Sun, 04 Sep 2011 00:29:20 GMT
Hey Uwe,

Thanks for the FYI. I'll update the patch and contribute a unit test for it too.

Cheers,
Chris

On Sep 3, 2011, at 2:51 PM, Uwe Schindler wrote:

> See my comment on the issue. You should not consume token streams on
> construction.
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
> 
> 
>> -----Original Message-----
>> From: Mattmann, Chris A (388J) [mailto:chris.a.mattmann@jpl.nasa.gov]
>> Sent: Saturday, September 03, 2011 6:18 AM
>> To: dev@lucene.apache.org
>> Cc: yonik@lucidimagination.com; solr-user@lucene.apache.org
>> Subject: Re: Analyzers and sorting with a custom analysis chain
>> 
>> On Sep 2, 2011, at 8:53 PM, Mattmann, Chris A (388J) wrote:
>> 
>>> 
>>> I think in spelling this out though, I might have elaborated my
>>> problem. Since the method I call in the constructor for my
>>> CombiningFilter is super(mergeStreamTokens(in)) where
>>> mergeStreamTokens is a static method, I think I might have consumed
>>> the input TokenStream by the time it gets called for the sort. It works
> on
>> analysis.jsp probably because the stream isn't re-consumed? Not sure,
>> something wiggy is going on.
>> 
>> OK scratch that. B/c I was creating a new KeywordTokenizer and then
> returning
>> that as the *new* input TokenStream, it was creating a new stream that
> could
>> be consumed via incrementToken, so that wasn't it. Must be something else.
>> 
>> Will keep digging.
>> 
>> Cheers,
>> Chris
>> 
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> ++
>> Chris Mattmann, Ph.D.
>> Senior Computer Scientist
>> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
>> Office: 171-266B, Mailstop: 171-246
>> Email: chris.a.mattmann@nasa.gov
>> WWW:   http://sunset.usc.edu/~mattmann/
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> ++
>> Adjunct Assistant Professor, Computer Science Department University of
>> Southern California, Los Angeles, CA 90089 USA
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> ++
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>> commands, e-mail: dev-help@lucene.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message