Child object id search

I have this object:

document
{
Title:string,
Id:integer
Tags:List
}

Tag
{
Id:integer,
Value:string,
Type:string
}

When searching for
document.tags.value I succeed, but when searching for
document.tags.id, I get no results back.
Why is this?

--

Hello Michael,

That's weird, because for me it works on an "autodetected mapping":

So I guess what I understood is not what you have. If that's true, can
you come up with some more details, like:

  • ES version
  • mapping
  • sample doc

Best regards,
Radu

http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

On Fri, Nov 9, 2012 at 10:32 AM, Michael Gulliksen
michael.gulliksen@gmail.com wrote:

I have this object:

document
{
Title:string,
Id:integer
Tags:List
}

Tag
{
Id:integer,
Value:string,
Type:string
}

When searching for
document.tags.value I succeed, but when searching for
document.tags.id, I get no results back.
Why is this?

--

--

Hi Radu,

I am using c# NEST for indexing and elasticsearch-head plugin for web
interface / search, ES 0.19, default mapping. It looks like I/there is a
problem related to sub objects and similar property names. E.g. document.id
and tag.id, when changeing tag.id to tag.tagid it works.

/Michael

On Friday, November 9, 2012 9:21:55 PM UTC+1, Radu Gheorghe wrote:

Hello Michael,

That's weird, because for me it works on an "autodetected mapping":
child object ID search · GitHub

So I guess what I understood is not what you have. If that's true, can
you come up with some more details, like:

  • ES version
  • mapping
  • sample doc

Best regards,
Radu

http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

On Fri, Nov 9, 2012 at 10:32 AM, Michael Gulliksen
<michael....@gmail.com <javascript:>> wrote:

I have this object:

document
{
Title:string,
Id:integer
Tags:List
}

Tag
{
Id:integer,
Value:string,
Type:string
}

When searching for
document.tags.value I succeed, but when searching for
document.tags.id, I get no results back.
Why is this?

--

--