Skip to content
nmyza edited this page Dec 20, 2016 · 6 revisions

#Pages

  1. Application schema
  2. Parser to Indexer communication

#Parser start curl -H "Content-Type: application/json" -X POST -d '<json>' http://localhost:5000/api/start

это команда на старт парсера

а это пример  тела:

{
"connection_settings":
    {
        "server":"10.0.0.127", 
         "port":"8091",
         "bucket":"train_data_1"
    },
"parsing_rules":
    [
        {
            "name":"CATEGORY",
            "source_type":"field",
            "source_name":"category",
        },
        {    
            "name":"SUBCATEGORY",
            "source_type":"field",
            "source_name":"subcategory",
            "filter":"!null"
        }
    ]
}
Clone this wiki locally