Hi, I'm doing my internship in France and my subject is to translate the SQL search to the Hibernate Search.
E.g, in our old systeme, I have 2 classes
INDEXING and
DATA_PROPERTY and I can't change them or creat a new class to associate 2 of them.
There is a Sql search like this:
Code:
SELECT IND.RDF_RESOURCE
FROM INDEXING IND, DATA_PROPERTY DP
WHERE IND.RDF_RESOURCE = DP.RDF_RESOURCE
AND IND.OBJECT_TYPE_ID_INDEXED IN (........)
AND DP.PARTITION_VALUE IN (......)
AND .......
Part of indexing:
Code:
mapping.entity(DatatypeProperty.class).indexed().providedId()
.property("rdfResource",ElementType.FIELD).field().analyze(Analyze.NO).store(Store.YES)
.property("partitionValue", ElementType.FIELD).field().analyze(Analyze.NO)
mapping.entity(Indexing.class).indexed().providedId()
.property("rdfResource",ElementType.FIELD).field().analyze(Analyze.NO).store(Store.YES)
There is no association between 2 of them.
How can I translate IND.RDF_RESOURCE = DP.RDF_RESOURCE in Hibernate Search DSL???
Anyone has some clues??