{
"title": "Some title text here",
"description": "some more text here",
"object": {
"c52a85d39125e6b4cdeaafb87c1ef565":"Text to be searched",
"faf709ec2943202db7300bcc7eeb2930": "more text here"
}
}
When searching I would like to use the boost functionality. So queries look
like this:
When running the example above the search is only performed in the fields
"title" and "description". Is there any way to enable searching through all
fields in the "object" like "object.*"?
{
"title": "Some title text here",
"description": "some more text here",
"object": {
"c52a85d39125e6b4cdeaafb87c1ef565":"Text to be searched",
"faf709ec2943202db7300bcc7eeb2930": "more text here"
}
}
When searching I would like to use the boost functionality. So queries look
like this:
When running the example above the search is only performed in the fields
"title" and "description". Is there any way to enable searching through all
fields in the "object" like "object.*"?
{
"title": "Some title text here",
"description": "some more text here",
"object": {
"c52a85d39125e6b4cdeaafb87c1ef565":"Text to be searched",
"faf709ec2943202db7300bcc7eeb2930": "more text here"
}
}
When searching I would like to use the boost functionality. So queries
look
like this:
When running the example above the search is only performed in the fields
"title" and "description". Is there any way to enable searching through
all
fields in the "object" like "object.*"?
what I think you can try doing in the meantime is exclude title and
description from _all field and update your query by adding a boolean query.
Something like:
{
"title": "Some title text here",
"description": "some more text here",
"object": {
"c52a85d39125e6b4cdeaafb87c1ef565":"Text to be searched",
"faf709ec2943202db7300bcc7eeb2930": "more text here"
}
}
When searching I would like to use the boost functionality. So queries look
like this:
When running the example above the search is only performed in the fields
"title" and "description". Is there any way to enable searching through all
fields in the "object" like "object.*"?
thank you all for the answers. I've added a feature request and will try the query of Lukas meanwhile.
Regards,
Bernd
Am 13.11.2010 um 00:09 schrieb Lukáš Vlček [via Elasticsearch Users]:
Hi,
what I think you can try doing in the meantime is exclude title and description from _all field and update your query by adding a boolean query. Something like:
(did not try to run this query so the syntax may not be correct, but hope the idea is clear)
Regards,
Lukas
On Wed, Nov 10, 2010 at 6:55 PM, bernd <[hidden email]> wrote:
Hello,
I have indexed documents like this:
{
"title": "Some title text here",
"description": "some more text here",
"object": {
"c52a85d39125e6b4cdeaafb87c1ef565":"Text to be searched",
"faf709ec2943202db7300bcc7eeb2930": "more text here"
}
}
When searching I would like to use the boost functionality. So queries look
like this:
When running the example above the search is only performed in the fields
"title" and "description". Is there any way to enable searching through all
fields in the "object" like "object.*"?
thank you all for the answers. I've added a feature request and will try
the query of Lukas meanwhile.
Regards,
Bernd
Am 13.11.2010 um 00:09 schrieb Lukáš Vlček [via Elasticsearch Users]:
Hi,
what I think you can try doing in the meantime is exclude title and
description from _all field and update your query by adding a boolean query.
Something like:
(did not try to run this query so the syntax may not be correct, but hope
the idea is clear)
Regards,
Lukas
On Wed, Nov 10, 2010 at 6:55 PM, bernd <[hidden email]<#12c4260843f7b033_>
wrote:
Hello,
I have indexed documents like this:
{
"title": "Some title text here",
"description": "some more text here",
"object": {
"c52a85d39125e6b4cdeaafb87c1ef565":"Text to be searched",
"faf709ec2943202db7300bcc7eeb2930": "more text here"
}
}
When searching I would like to use the boost functionality. So queries
look
like this:
When running the example above the search is only performed in the fields
"title" and "description". Is there any way to enable searching through
all
fields in the "object" like "object.*"?
thank you all for the answers. I've added a feature request and will try
the query of Lukas meanwhile.
Regards,
Bernd
Am 13.11.2010 um 00:09 schrieb Lukáš Vlček [via Elasticsearch Users]:
Hi,
what I think you can try doing in the meantime is exclude title and
description from _all field and update your query by adding a boolean query.
Something like:
(did not try to run this query so the syntax may not be correct, but hope
the idea is clear)
Regards,
Lukas
On Wed, Nov 10, 2010 at 6:55 PM, bernd <[hidden email]<#12c42a0cf9f4d625_12c4260843f7b033_>
wrote:
Hello,
I have indexed documents like this:
{
"title": "Some title text here",
"description": "some more text here",
"object": {
"c52a85d39125e6b4cdeaafb87c1ef565":"Text to be searched",
"faf709ec2943202db7300bcc7eeb2930": "more text here"
}
}
When searching I would like to use the boost functionality. So queries
look
like this:
When running the example above the search is only performed in the fields
"title" and "description". Is there any way to enable searching through
all
fields in the "object" like "object.*"?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.