Percolatorを用いたカテゴリ分類

 Percolatorを用いたカテゴリ分類

13544f14cbbbd7f170dca2565d5aff87?s=128

INA Lintaro

August 02, 2018
Tweet

Transcript

  1. 3.
  2. 5.
  3. 6.

    :

  4. 9.
  5. 11.
  6. 14.
  7. 15.
  8. 18.

    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 }
  9. 19.

    Percolator (API) PUT /MainIndex/issue_item_query { "mappings": { "_doc": { "properties":

    { "query": { "type": "percolator" } } } } } PUT /MainIndex/issue_item_query/issueItemId { "query": query } GET /MainIndex/issue_item_query/_search { "query": { "percolate": { "document_type": "entry", "field": "query", "document": entry } } }
  10. 23.
  11. 25.

    ◮ ◮ ◮ ? ( kuromoji ) ◮ ◮ →

    ◮ ◮ ◮ Percolator ◮ Percolator ? ◮