Nested terms facet with QueryString filter

Hi,

i need get all (by facet) categories (nested) filtered by query_string. Is
it possible?

example document:

{
id: 1,
categories: [
{
id: 1,
name: "Lorem ipsum dlor",
analyzedName: "Lorem ipsum dlor",
ident: "lorem-ipsum-dlor"
},
{
id: 2,
name: "Foo Bar Baz",
analyzedName: "Foo Bar Baz",
ident: "foo-bar-baz"
}
]
}

I need get terms for "Foo Baz" query string

result for this document:

'Foo Bar Baz'

Thanks Patrik

--
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,

May be it is just me but I do not think I understand your question. Can you
try to rephrase it please?

Regards,
Lukáš
Dne 17.10.2013 17:34 "Patrik Votoček" patrik@votocek.cz napsal(a):

Hi,

i need get all (by facet) categories (nested) filtered by query_string. Is
it possible?

example document:

{
id: 1,
categories: [
{
id: 1,
name: "Lorem ipsum dlor",
analyzedName: "Lorem ipsum dlor",
ident: "lorem-ipsum-dlor"
},
{
id: 2,
name: "Foo Bar Baz",
analyzedName: "Foo Bar Baz",
ident: "foo-bar-baz"
}
]
}

I need get terms for "Foo Baz" query string

result for this document:

'Foo Bar Baz'

Thanks Patrik

--
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.

--
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 a have documents with this structure:

{
id: 1,
name: "Foo Lorem ipsum dlor Baz",
categories: [
{
id: 1,
name: "Lorem ipsum dlor",
analyzedName: "Lorem ipsum dlor",
ident: "lorem-ipsum-dlor"
},
{
id: 2,
name: "Foo Bar Baz",
analyzedName: "Foo Bar Baz",
ident: "foo-bar-baz"
}
]
}

and I make query (query string) for name. And now I need add facet (terms)
for category (analyzedName) but filtered by same query string.

Dne pátek, 18. října 2013 8:36:58 UTC+2 Lukáš Vlček napsal(a):

Hi,

May be it is just me but I do not think I understand your question. Can
you try to rephrase it please?

Regards,
Lukáš
Dne 17.10.2013 17:34 "Patrik Votoček" <pat...@votocek.cz <javascript:>>
napsal(a):

Hi,

i need get all (by facet) categories (nested) filtered by query_string.
Is it possible?

example document:

{
id: 1,
categories: [
{
id: 1,
name: "Lorem ipsum dlor",
analyzedName: "Lorem ipsum dlor",
ident: "lorem-ipsum-dlor"
},
{
id: 2,
name: "Foo Bar Baz",
analyzedName: "Foo Bar Baz",
ident: "foo-bar-baz"
}
]
}

I need get terms for "Foo Baz" query string

result for this document:

'Foo Bar Baz'

Thanks Patrik

--
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 elasticsearc...@googlegroups.com <javascript:>.
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.

Not sure what you mean by "filtered by same query string". Facets are
applied to the documents that are returned by the query. In your example,
you can search the name field, and then facet on the resulting documents
based on the analyzedName field. Do you want to filter the facet values? A
more concreted example would help.

Cheers,

Ivan

On Mon, Oct 21, 2013 at 4:25 AM, Patrik Votoček patrik@votocek.cz wrote:

So a have documents with this structure:

{
id: 1,
name: "Foo Lorem ipsum dlor Baz",
categories: [
{
id: 1,
name: "Lorem ipsum dlor",
analyzedName: "Lorem ipsum dlor",
ident: "lorem-ipsum-dlor"
},
{
id: 2,
name: "Foo Bar Baz",
analyzedName: "Foo Bar Baz",
ident: "foo-bar-baz"
}
]
}

and I make query (query string) for name. And now I need add facet (terms)
for category (analyzedName) but filtered by same query string.

Dne pátek, 18. října 2013 8:36:58 UTC+2 Lukáš Vlček napsal(a):

Hi,

May be it is just me but I do not think I understand your question. Can
you try to rephrase it please?

Regards,
Lukáš
Dne 17.10.2013 17:34 "Patrik Votoček" pat...@votocek.cz napsal(a):

Hi,

i need get all (by facet) categories (nested) filtered by query_string.
Is it possible?

example document:

{
id: 1,
categories: [
{
id: 1,
name: "Lorem ipsum dlor",
analyzedName: "Lorem ipsum dlor",
ident: "lorem-ipsum-dlor"
},
{
id: 2,
name: "Foo Bar Baz",
analyzedName: "Foo Bar Baz",
ident: "foo-bar-baz"
}
]
}

I need get terms for "Foo Baz" query string

result for this document:

'Foo Bar Baz'

Thanks Patrik

--
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 elasticsearc...@**googlegroups.com.

For more options, visit https://groups.google.com/**groups/opt_outhttps://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.

--
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.

Yep, I need filter facet values by same query string. If I make search "Foo
Bar" and use this string as query string search i need filter facet values
with same query string. So in my example returns only "Foo Bar Baz"
category in facet values.

Dne úterý, 22. října 2013 6:46:12 UTC+2 Ivan Brusic napsal(a):

Not sure what you mean by "filtered by same query string". Facets are
applied to the documents that are returned by the query. In your example,
you can search the name field, and then facet on the resulting documents
based on the analyzedName field. Do you want to filter the facet values? A
more concreted example would help.

Cheers,

Ivan

On Mon, Oct 21, 2013 at 4:25 AM, Patrik Votoček <pat...@votocek.cz<javascript:>

wrote:

So a have documents with this structure:

{
id: 1,
name: "Foo Lorem ipsum dlor Baz",
categories: [
{
id: 1,
name: "Lorem ipsum dlor",
analyzedName: "Lorem ipsum dlor",
ident: "lorem-ipsum-dlor"
},
{
id: 2,
name: "Foo Bar Baz",
analyzedName: "Foo Bar Baz",
ident: "foo-bar-baz"
}
]
}

and I make query (query string) for name. And now I need add facet
(terms) for category (analyzedName) but filtered by same query string.

Dne pátek, 18. října 2013 8:36:58 UTC+2 Lukáš Vlček napsal(a):

Hi,

May be it is just me but I do not think I understand your question. Can
you try to rephrase it please?

Regards,
Lukáš
Dne 17.10.2013 17:34 "Patrik Votoček" pat...@votocek.cz napsal(a):

Hi,

i need get all (by facet) categories (nested) filtered by query_string.
Is it possible?

example document:

{
id: 1,
categories: [
{
id: 1,
name: "Lorem ipsum dlor",
analyzedName: "Lorem ipsum dlor",
ident: "lorem-ipsum-dlor"
},
{
id: 2,
name: "Foo Bar Baz",
analyzedName: "Foo Bar Baz",
ident: "foo-bar-baz"
}
]
}

I need get terms for "Foo Baz" query string

result for this document:

'Foo Bar Baz'

Thanks Patrik

--
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 elasticsearc...@**googlegroups.com.

For more options, visit https://groups.google.com/**groups/opt_outhttps://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 elasticsearc...@googlegroups.com <javascript:>.
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.