Hi,
Ok, well if you want to use native Lucene queries, you need to use those that match the type of your field. If you’re using QueryParser
, then my previous link is relevant: .fromLuceneQuery(…) not matching @GenericField fields - #2 by yrodiere . See solution #3 in particular.
Also, no, there isn’t any text representation of Hibernate Search predicates at the moment. You’ll have to use your own. There are plans to add support for QueryParser
syntax (HSEARCH-4563), but as I already mentioned elsewhere, I’m already busy with other features, so you’ll have to wait or contribute a pull request if you want it soon.