PUT test
PUT test/_doc/1
{
"title": "affaldsregister"
}
PUT test/_doc/2
{
"title": "affaldsdatasystem - Import af indberetninger"
}
PUT test/_doc/3
{
"title": "anmod om ændring af affaldsordning"
}
PUT test/_doc/4
{ "title": "ansøgning om dispensation for affaldsregulativ " }
POST test/_search
{
"suggest": {
"term_suggest": {
"text": "affald",
"term": {
"field": "title"
}
}
}
}
My case is, I have lot of documents, and I want suggestions like Google, based on the text in the documents. I both want single word and phase suggestions. I am not sure, how to do that, with the standard suggesters.
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.