I have multiple types in my index and my plan was, for each type, to
include some properties of the type and the type itself into the _all
field, so from a single search field the user can search for the properties
and the type too.
Let's say there's a bank called ABC. If I'm looking for a branch, I search
for "abc branch", but if I'm only interested in ATMs, I search for "abc
atm", and if any ATM will do, I search for "atm". Branch and ATM is a type,
and ABC is the value of the name property of these types.
One way is to just let the user filter the type, something like: _type:abc (or have your own filtering). Otherwise, that filtering is not really effective usability wise.
On Thursday, February 16, 2012 at 8:23 AM, Gábor Suhai wrote:
I have multiple types in my index and my plan was, for each type, to include some properties of the type and the type itself into the _all field, so from a single search field the user can search for the properties and the type too.
Let's say there's a bank called ABC. If I'm looking for a branch, I search for "abc branch", but if I'm only interested in ATMs, I search for "abc atm", and if any ATM will do, I search for "atm". Branch and ATM is a type, and ABC is the value of the name property of these types.
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.