Hi,

     Execution of the following code snippet
       "RegexpQuery  regquery= new  RegexpQuery(new Term("text", "regul.*"));
       spt2 = new SpanMultiTermQueryWrapper<RegexpQuery>(regquery);
       spt2.createWeight(searcher, true);"

throws  java.lang.IllegalArgumentException: Rewrite first!


  Can anyone suggest what is the problem with this?

Thanks,
Ranganath B. N.

Reply via email to