The likely problem that I see is capitalization. "Entry"
and "Artist"
are not getting passed through a query parser, and so will not be run through an analyzer, and so are case sensitive. The field you are indexing is probably analyzed with an analyzer that includes a LowercaseFilter
, so the end terms would not contain leading capitals. Without knowing how you index your documents, I can't say that will fix it with any certainty, but it seems the most likely possibility.
That fixed, the query you've created should match anything with either the term "entry"
or "artist"
in the jobTitle field.