Well, the syntax is wrong. You probably want content_raw:"jobs
born"~15. The way slop works, it is the number of "moves" so this will
match "jobs was a man born somewhere" and "all persons born include
jobs". The difference is that the version that has "born" first and
"jobs" second will take an extra move, so if the search is "jobs born"
and the text was "born jobs", the second one would require more slop.

Best,
Erick

On Sat, Oct 25, 2014 at 2:48 AM, john eipe <john77e...@gmail.com> wrote:
> Hi
>
> I'm trying to match keywords based on 2 fields and excluding order
> importance but with distance restriction.
>
> title:(Jobs) AND content_raw:(Jobs born)~15
>
> This throws error:
> org.apache.solr.search.SyntaxError: Cannot parse '(Jobs born)~15':
> Encountered " <FUZZY_SLOP> "~15 "
>
> What's the correct way to frame this query?
>
> Regards,
> *John Eipe*
>
> “The Roots of Violence: Wealth without work, Pleasure without conscience,
> Knowledge without character, Commerce without morality, Science without
> humanity, Worship without sacrifice, Politics without principles”
> - Mahatma Gandhi

Reply via email to