Slide 18
Slide 18 text
Percolator (Scala)
createIndex(MainIndex).mappings(
mapping("issue_item_query") fields percolatorField("query"))
val query =
issueItem.query.toCategorizingQuery.toFilteredQuery
register(query) into(MainIndex / "issue_item_query", "query")
withId issueItemId.toPercolatorId
search(MainIndex / "issue_item_query") query {
percolateQuery("entry", "query") usingSource
entry.toEsEntry.toJsonString
}