Hi,

This had helped, thank you Uwe!

Regards,
Mindaugas

On Mon, Jan 6, 2014 at 12:48 PM, Uwe Schindler <u...@thetaphi.de> wrote:
> Hi,
>
> The problem is your Analyzer: As it returns different components for each 
> field name, the constructor must pass the per field reuse strategy. By 
> default it uses GLOBAL_REUSE_STRATEGY (the no-arg constructor does this). So 
> create the Analyzer with PER_FIELD_REUSE_STRATEGY explicitely passed to 
> super's ctor.
>
> With separate instances of Analyzer and QueryParser, it will not reuse (as a 
> new instance is created each time). This also affects the indexer. Once you 
> index more than one document, the same will happen (it will reuse the 
> components for the first field name encountered).
>
> Uwe

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to