I tested the combination of ES, the JDBC-River and Postgres, it worked well
for me. My problem is that i have no clue how i could built an index like
the example index http://www.elasticsearch.org/blog/you-complete-me/ on
the ES completion suggester website (blog):
curl -X PUT localhost:9200/hotels/hotel/1 -d '
{
"name" : "Mercure Hotel Munich",
"city" : "Munich",
"name_suggest" : {
"input" : [
"Mercure Hotel Munich",
"Mercure Munich"
]
}
}'
Complete suggesters are build on top of a search graph. Each user input
reduces the pathes on the graph. But only exact matches will remain. If
multiple queries should leed to one result, the ES website suggests to
provide multiple "input" fields like above. I will have thousands of
documents and can not craft my index manually like it seems on the site.
My question is now: How can i automatically build an ES index with a
JDBC-River?
I hope you can give me some input. Thanks in advance!
I tested the combination of ES, the JDBC-River and Postgres, it worked
well for me. My problem is that i have no clue how i could built an index
like the example index http://www.elasticsearch.org/blog/you-complete-me/ on the ES completion
suggester website (blog):
curl -X PUT localhost:9200/hotels/hotel/1 -d '
{
"name" : "Mercure Hotel Munich",
"city" : "Munich",
"name_suggest" : {
"input" : [
"Mercure Hotel Munich",
"Mercure Munich"
]
}
}'
Complete suggesters are build on top of a search graph. Each user input
reduces the pathes on the graph. But only exact matches will remain. If
multiple queries should leed to one result, the ES website suggests to
provide multiple "input" fields like above. I will have thousands of
documents and can not craft my index manually like it seems on the site.
My question is now: How can i automatically build an ES index with a
JDBC-River?
I hope you can give me some input. Thanks in advance!
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.