Index Swapping and Index Configuration

Hi,

I'm using the Java API.

Is there a way to search only on one index?

Solr had a way of not replicating to the slaves unless an optimize was
done. Is there an equivalent in elastic search?

Also, solr has the concept of the schema.xml -- how do I create
different definitions for my fields?

Thanks,

Neil

On Mon, Sep 26, 2011 at 6:52 PM, Neil neilmatthewlott@gmail.com wrote:

Hi,

I'm using the Java API.

Is there a way to search only on one index?

Based on your next questions, I think you are confused a bit on the data
schema in elasticsearch. A cluster in elasticsearch can handle many indices.
Each index has its own distributed settings, mainly, the number of shards
and number of replicas. You can easily search only on one index, several
indices, or all of them using either the REST or the Java API.

Solr had a way of not replicating to the slaves unless an optimize was
done. Is there an equivalent in Elasticsearch?

Thats not how elasticsearch works in terms of replication. See this
session:

.

Also, solr has the concept of the schema.xml -- how do I create
different definitions for my fields?

Yes, that would be called mappings in elasticsearch, and can be associated
on a index level per type. See more here:
Elasticsearch Platform — Find real-time answers at scale | Elastic.

Thanks,

Neil