make related matching less strict

This commit is contained in:
keyan 2022-10-29 10:13:57 -05:00
parent 6d2b88fa7b
commit 60d84e2ddd

View File

@ -46,19 +46,6 @@ export default {
query: { query: {
bool: { bool: {
should: [ should: [
{
more_like_this: {
fields: ['title'],
like: title,
min_term_freq: 1,
min_doc_freq: 1,
max_query_terms: 25,
min_word_length: 2,
minimum_should_match: '50%',
stop_words: STOP_WORDS,
boost: 400
}
},
{ {
more_like_this: { more_like_this: {
fields: ['title'], fields: ['title'],
@ -67,7 +54,7 @@ export default {
min_doc_freq: 1, min_doc_freq: 1,
min_word_length: 2, min_word_length: 2,
max_query_terms: 25, max_query_terms: 25,
minimum_should_match: '30%', minimum_should_match: '20%',
stop_words: STOP_WORDS stop_words: STOP_WORDS
} }
} }