Index Swapping and Index Configuration


(Neil) #1

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


(Shay Banon) #2

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 elastic search?

Thats not how elasticsearch works in terms of replication. See this
session:
http://www.elasticsearch.org/videos/2011/08/09/road-to-a-distributed-searchengine-berlinbuzzwords.html
.

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:
http://www.elasticsearch.org/guide/reference/mapping/.

Thanks,

Neil


(system) #3