Hi,

I simply want to score the results of my "more_like_this_field" query on my 
own.

Why doesn't this work?


*{ *

*      "query": { *

*            "function_score": { *

*                    "more_like_this_field": { *

*                            "test_field": { *

*                                    "like_text": "this is a test", *

*                                    "min_term_freq" : "0", *

*                                    "min_doc_freq": "0" *

*                            } *

*                    }, *

*                    "functions": [ *

*                            { *

*                                    "script_score": { *

*                                            "script": "_score * 2" // just 
an example*

*                                    } *

*                            } *

*                    ] *

*             } *

*      } *

*}*

Furthermore I like to calculate the score with levenshtein distance. I know 
there is a fuzzy search with levenshtein, but it's limited and also to slow.

I only want to score the top n results with it.

Is that somehow possible?

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/6c0a9cf9-757b-4c8b-9613-16f9029977d6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to