Hi,
Quote:
Is it possible to conditionally index an entity?
Not yet, please join the brainstorming with your use case and suggestions:
HSEARCH-471Quote:
If I have millions of rows in a database and I only want to have a subset appear in an index, how is this possible? The simplest case is that I have dates on entities and I only want entities within a specific date range to be located within an index. I don't mean 'queried'. They can't be in the index because the indexing will take far to long, and too large when a system has been brought down, or initially started.
Depending on if you're concerned on the event processing (real time index update) or the initial index creation, maybe you're more interested in
HSEARCH-499 ?
But writing some code which populates initial indexes using your favourite criteria is trivial, just add some conditions before creating the scrollableresult using the old approach instead of the MassIndexer :
search-batchindex-flushtoindexesQuote:
I would like to keep a subset of data, so I can use a RAMDirectory too. Hopefully this all works well with EHCache since I have distributed cache.
That seems a good fit for the new
Infinispan backend, so that you also have a distributed index.