anks Alan. Solution works. But why should we first rewrite?
>
> -Original Message-
> From: Alan Woodward [mailto:a...@flax.co.uk]
> Sent: Thursday, July 06, 2017 4:36 PM
> To: java-user@lucene.apache.org
> Cc: Vadiraj Muradi
> Subject: Re: SpanMultiTermQueryWrapper issue in
Thanks Alan. Solution works. But why should we first rewrite?
-Original Message-
From: Alan Woodward [mailto:a...@flax.co.uk]
Sent: Thursday, July 06, 2017 4:36 PM
To: java-user@lucene.apache.org
Cc: Vadiraj Muradi
Subject: Re: SpanMultiTermQueryWrapper issue in lucene 6.6.0
You need to
>
>
> -Original Message-
> From: Adrien Grand [mailto:jpou...@gmail.com]
> Sent: Thursday, July 06, 2017 4:09 PM
> To: java-user@lucene.apache.org
> Cc: Vadiraj Muradi
> Subject: Re: SpanMultiTermQueryWrapper issue in lucene 6.6.0
>
> What is the context
write first!" is thrown
Thanks,
Ranganath B. N.
-Original Message-
From: Adrien Grand [mailto:jpou...@gmail.com]
Sent: Thursday, July 06, 2017 4:09 PM
To: java-user@lucene.apache.org
Cc: Vadiraj Muradi
Subject: Re: SpanMultiTermQueryWrapper issue in lucene 6.6.0
What is the conte
What is the context of this code? Depending whether you are just trying to
consume this query or building a query wrapper, you should either call
searcher.createNormalizedWeight(spt2, true) instead or make sure that your
query wrapper rewrites the wrapped queries.
Le jeu. 6 juil. 2017 à 12:36, Ran
Hi,
Execution of the following code snippet
"RegexpQuery regquery= new RegexpQuery(new Term("text", "regul.*"));
spt2 = new SpanMultiTermQueryWrapper(regquery);
spt2.createWeight(searcher, true);"
throws java.lang.IllegalArgumentException: Rewrite first!
Can anyon