Skip to content

Parser to Indexer communication

nmyza edited this page Jan 8, 2017 · 3 revisions

#Message from Parser to Indexer Two numbers separated by comma(?) separator. The numbers are count of bytes in fields after (:) separator

Custom TCP message:

lenght[,lenght,lenght]:doc_id[(tag_name)(value)]

5,5,3:76frdColorred

Parsed as 3 fiesds with 5, 5 and 3 characters(?) accordingly:

doc_id: 76frd
tag_name: Color
Value: red

Example:

docid = "aaa:76:bb"
city = SF
color = Red
hobby = Beer
hobby = Games
hobby = Couch
9,4,2,5,3,5,4,5,5,5,5:aaa:76:bbcitySFcolorRedhobbyBeerhobbyGameshobbyCouch
Clone this wiki locally