$ curl -XPUT 'http://localhost:9200/specimens/fullText/1' -d '
{
"terms" : {"Gadus morhua","2009-11-15T14:12:12","Atlantic cod"} //
possibly even breaking into "Gadus" and "morhua"
}
'
Or is there a better way? I didn't spot anything like this scanning the docs.
The reason I want to do this is because I want specific UI for various
themes (which will overlap but each will be a subset of the whole),
but still want to offer full text simple search capabilities over the
whole store (e.g. google style)
I am building several thematic indexes onto the same content, but
would like to also do a full text version.
Or is there a better way? I didn't spot anything like this scanning the docs.
The reason I want to do this is because I want specific UI for various
themes (which will overlap but each will be a subset of the whole),
but still want to offer full text simple search capabilities over the
whole store (e.g. google style)
Yes, this is easy to do.
Elasticsearch stores all documents as /$index/$type/$id so you could
have, eg

$ curl -XPUT 'http://localhost:9200/specimens/fullText/1' -d '
{
"terms" : {"Gadus morhua","2009-11-15T14:12:12","Atlantic cod"} //
possibly even breaking into "Gadus" and "morhua"
}
'
So you don't need to store anything extra - with the data you're storing
already, it'll be sufficient. Just make sure that (eg) your scientific
name is 'analyzed', which will allow you to search for "Gadus" and
"morhua" separately.
Clint
--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.
I am building several thematic indexes onto the same content, but
would like to also do a full text version.
Or is there a better way? I didn't spot anything like this scanning the
docs.
The reason I want to do this is because I want specific UI for various
themes (which will overlap but each will be a subset of the whole),
but still want to offer full text simple search capabilities over the
whole store (e.g. google style)
Yes, this is easy to do.
Elasticsearch stores all documents as /$index/$type/$id so you could
have, eg
$ curl -XPUT 'http://localhost:9200/specimens/fullText/1' -d '
{
"terms" : {"Gadus morhua","2009-11-15T14:12:12","Atlantic cod"} //
possibly even breaking into "Gadus" and "morhua"
}
'
So you don't need to store anything extra - with the data you're storing
already, it'll be sufficient. Just make sure that (eg) your scientific
name is 'analyzed', which will allow you to search for "Gadus" and
"morhua" separately.
Clint
--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.
Note also that master (0.6.0) will come with "_all" support which means you
can easily search on all fields. Here is the
issue: Issues · elastic/elasticsearch · GitHub
-shay.banon
I am building several thematic indexes onto the same content, but
would like to also do a full text version.
Or is there a better way? I didn't spot anything like this scanning the
docs.
The reason I want to do this is because I want specific UI for various
themes (which will overlap but each will be a subset of the whole),
but still want to offer full text simple search capabilities over the
whole store (e.g. google style)
Yes, this is easy to do.
Elasticsearch stores all documents as /$index/$type/$id so you could
have, eg
$ curl -XPUT 'http://localhost:9200/specimens/fullText/1' -d '
{
"terms" : {"Gadus morhua","2009-11-15T14:12:12","Atlantic cod"} //
possibly even breaking into "Gadus" and "morhua"
}
'
So you don't need to store anything extra - with the data you're storing
already, it'll be sufficient. Just make sure that (eg) your scientific
name is 'analyzed', which will allow you to search for "Gadus" and
"morhua" separately.
Clint
--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.
Note also that master (0.6.0) will come with "_all" support which means
you
can easily search on all fields. Here is the
issue: Issues · elastic/elasticsearch · GitHub
-shay.banon
I am building several thematic indexes onto the same content, but
would like to also do a full text version.
Or is there a better way? I didn't spot anything like this scanning
the
docs.
The reason I want to do this is because I want specific UI for various
themes (which will overlap but each will be a subset of the whole),
but still want to offer full text simple search capabilities over the
whole store (e.g. google style)
Yes, this is easy to do.
Elasticsearch stores all documents as /$index/$type/$id so you could
have, eg
$ curl -XPUT 'http://localhost:9200/specimens/fullText/1' -d '
{
"terms" : {"Gadus morhua","2009-11-15T14:12:12","Atlantic cod"} //
possibly even breaking into "Gadus" and "morhua"
}
'
So you don't need to store anything extra - with the data you're storing
already, it'll be sufficient. Just make sure that (eg) your scientific
name is 'analyzed', which will allow you to search for "Gadus" and
"morhua" separately.
Clint
--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.
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.