Skip to content

Oracle NoSQL Inverted Indexing

xamry edited this page Jul 11, 2013 · 3 revisions

When we set below property in persistence.xml, an inverted index is built while persisting data. This is done to facilitate searching of columns/ embedded columns using JPA queries (explained in next section):

<property name="kundera.indexer.class"
			value="com.impetus.client.oraclenosql.index.OracleNoSQLInvertedIndexer" />

An illustration of inverted index built by Kundera is given below (Data is similar to Person object from the previous section):

/PERSON_idx/PERSON_NAME/John Smith/ - /1     ---> 1
/PERSON_idx/AGE/32/ - /1                     ---> 1
/PERSON_idx/office.officeId/L1/ - /1         ---> 1
/PERSON_idx/office.companyName/Impetus/ - /1 ---> 1
/PERSON_idx/office.location/San Jose/ - /1   ---> 1
Previous Home Next
Clone this wiki locally