Hi All,
I'm wondering if there is a gentle way to create a Query where some clauses hit a lucene index and others hit the database persisted objects.
I leverage my question :
I wondering if something similar is possible
Code:
Criteria criteria;
{add some Criterion -> DB}
criteria.add(Expression.eq("field", "value");
org.apache.lucene.search.Query luceneQuery;
{create the lucene query string and parse it -> Lucene Index}
FullTextQuery ftp = fullTextSession.createFullTextQuery(luceneQuery);
ftq.setCriteriaQuery(criteria);
query.list();
Is someone inspired :-D ?
Ty
Best.
andy