I'm using the elasticsearch plugin and I'm running searches using elasticSearchService.search(myKeywords) which searches for keywords over all the domain classes marked as searchable.
Now I want to restrict the search to two specif domain classes. I can see there are options named indices and types that can be passed to the search method, but if I simply use my domain class names on them I get errors telling the index or type doesn't exist. What exactly should I do to achieve what I want?
(I'm new to lucene and elasticsearch and I'm not sure I understood the index and type concepts. Reading the docs I could only find examples to restrict searches to an specific field, not a hole domain class or whatever it is mapped to, in lucene/elasticsearch concepts).
elasticSearchAdminService.indicesI can see one index created for each of my domain classes. The names look like "org.mypackage_v0". Reading the docs I found out that the expected behavior should be oneindexfor the hole database and that each domain (table) should be mapped as atype. How can I do that? - Cléssio Mendes