fix2015
(Vitalii)
February 4, 2017, 6:55pm
1
Hy i get this query and need add type(field of poject) = 2 and can't understand where i should put
debug: `similarProjects`,
index: `project`,
type: `project`,
query: {
more_like_this: {
like: [{
_index: `project`,
_type: `project`,
_id: id
}],
min_term_freq: 1,
min_doc_freq: 1
}
},
pageSize: count,
page: 0,
fields
}
fix2015
(Vitalii)
February 4, 2017, 9:12pm
2
and can we do search by custom filed which called type?
fix2015
(Vitalii)
February 5, 2017, 11:27am
4
i tried do like this but it always return same result
query: {
bool: {
must: [
{ match: { _index: `project` }},
{ match: { _type: `project` }},
{ match: { type: 2 }}
],
should: [
{ match: { _id: id }},
]
}
system
(system)
Closed
March 5, 2017, 11:28am
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.