In my search query, I’d like to filter out anything that has a secondary type. I tried using the following:
- If a release doesn’t have a secondary type, the field is not displayed, so I get zero results.
- I think this errors out because it’s an unexpected character.
- This actually looks for an asterisk. Which of course doesn’t work.
- My results come through and I don’t get errors, but it doesn’t filter out the releases with a secondarytype like expected.
Is there a way to do this that I’m missing? I’ve read through the Lucene queryparser docs a few times and I just can’t seem to get the results I’m looking for.