> I want to
> use just one string like -- head:"hello~ world"~3 AND
> contents:"colorless~
> green~ ideas~".
> 
> When I this string query within ComplexPhraseQuery, I get
> the exception:
>  -- ParseException: Cannot parse 'hello~ world': Cannot
> have clause for
> field "content" nested in phrase  for field "head"
> 
> But, If I use -- head:hello AND head:world AND
> contents:"colorless~ green~
> ideas~" -- no errors occurred.


Actually there is solution/patch for that problem.

https://issues.apache.org/jira/secure/attachment/12414443/Lucene-1486+non+default+field.patch




---------------------------------------------------------------------
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