I have an index where the documents all look like this:
{
id:,
description:,
answer_:,
annotation_:
}
The "answer_" fields are dynamically added, like "answer_isEnglish:yes" or
"answer_supportsTeam:Real Madrid". I want to do faceted searching on these,
so I need them to not be tokenized. How could I have the description field
analyzed and searchable as normal, and none of the "answer_" fields
analyzed?
Am Donnerstag, 20. Juni 2013 12:40:21 UTC+2 schrieb David Milne:
Hi there,
I have an index where the documents all look like this:
{
id:,
description:,
answer_:,
annotation_:
}
The "answer_" fields are dynamically added, like "answer_isEnglish:yes"
or "answer_supportsTeam:Real Madrid". I want to do faceted searching on
these, so I need them to not be tokenized. How could I have the description
field analyzed and searchable as normal, and none of the "answer_" fields
analyzed?
You have to install the dynamic mapping before indexing content to the
answer-fields. You can use something like the following mapping.
Replace "soccer" with "your entity".
Am Donnerstag, 20. Juni 2013 12:40:21 UTC+2 schrieb David Milne:
Hi there,
I have an index where the documents all look like this:
{
id:,
description:,
answer_:,
annotation_:
}
The "answer_" fields are dynamically added, like "answer_isEnglish:yes"
or "answer_supportsTeam:Real Madrid". I want to do faceted searching on
these, so I need them to not be tokenized. How could I have the description
field analyzed and searchable as normal, and none of the "answer_" fields
analyzed?
On Friday, June 21, 2013 6:43:10 AM UTC+10, cthoma wrote:
You have to install the dynamic mapping before indexing content to the
answer-fields. You can use something like the following mapping.
Replace "soccer" with "your entity".
Am Donnerstag, 20. Juni 2013 12:40:21 UTC+2 schrieb David Milne:
Hi there,
I have an index where the documents all look like this:
{
id:,
description:,
answer_:,
annotation_:
}
The "answer_" fields are dynamically added, like "answer_isEnglish:yes"
or "answer_supportsTeam:Real Madrid". I want to do faceted searching on
these, so I need them to not be tokenized. How could I have the description
field analyzed and searchable as normal, and none of the "answer_" fields
analyzed?
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.