Retrieving results based on key search (vs content)

Hi

This might be an obvious question, but i cannot figure it out

i am adding json objrcts to index search using the commandline bulk load
feature.

the id of each file is a string. (like brad-pitt)

when i do a search, i get back al json objects that have brad-pitt in them,
how do i get the one record whose id was 'brad-pitt'

looks like id is not indexed, which setting letsc me do that?

thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

If you don't specify in the mapping the id of the documents (
Elasticsearch Platform — Find real-time answers at scale | Elastic) then an
automatic id is created . To get a document from id see:
Elasticsearch Platform — Find real-time answers at scale | Elastic

On Tuesday, September 3, 2013 5:47:07 AM UTC+2, gautam singhania wrote:

Hi

This might be an obvious question, but i cannot figure it out

i am adding json objrcts to index search using the commandline bulk load
feature.

the id of each file is a string. (like brad-pitt)

when i do a search, i get back al json objects that have brad-pitt in
them, how do i get the one record whose id was 'brad-pitt'

looks like id is not indexed, which setting letsc me do that?

thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi

Thanks for the reply

I am generating the id and adding it to Id field

My problem is that when I search on a term it gets searched on the content
not the I'd of the content

Thanks

On Tuesday, September 3, 2013, ddorian43 wrote:

If you don't specify in the mapping the id of the documents (
Elasticsearch Platform — Find real-time answers at scale | Elastic) then an
automatic id is created . To get a document from id see:
Elasticsearch Platform — Find real-time answers at scale | Elastic

On Tuesday, September 3, 2013 5:47:07 AM UTC+2, gautam singhania wrote:

Hi

This might be an obvious question, but i cannot figure it out

i am adding json objrcts to index search using the commandline bulk load
feature.

the id of each file is a string. (like brad-pitt)

when i do a search, i get back al json objects that have brad-pitt in
them, how do i get the one record whose id was 'brad-pitt'

looks like id is not indexed, which setting letsc me do that?

thanks

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/2ZF2DHUEZ_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com <javascript:_e({}, 'cvml',
'elasticsearch%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

So, do you need anything more? You can use the 'get' api that i linked
before.

On Wed, Sep 4, 2013 at 2:55 AM, gautam singhania gautamsa79@gmail.comwrote:

Hi

Thanks for the reply

I am generating the id and adding it to Id field

My problem is that when I search on a term it gets searched on the content
not the I'd of the content

Thanks

On Tuesday, September 3, 2013, ddorian43 wrote:

If you don't specify in the mapping the id of the documents (
Elasticsearch Platform — Find real-time answers at scale | Elastic) then an
automatic id is created . To get a document from id see:
Elasticsearch Platform — Find real-time answers at scale | Elastic

On Tuesday, September 3, 2013 5:47:07 AM UTC+2, gautam singhania wrote:

Hi

This might be an obvious question, but i cannot figure it out

i am adding json objrcts to index search using the commandline bulk
load feature.

the id of each file is a string. (like brad-pitt)

when i do a search, i get back al json objects that have brad-pitt in
them, how do i get the one record whose id was 'brad-pitt'

looks like id is not indexed, which setting letsc me do that?

thanks

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/2ZF2DHUEZ_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/2ZF2DHUEZ_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.