diff --git a/feed_to_vespa.py b/feed_to_vespa.py index 67d6c6a59..aecde455e 100755 --- a/feed_to_vespa.py +++ b/feed_to_vespa.py @@ -71,7 +71,7 @@ def vespa_remove(endpoint, doc_ids, namespace, doc_type): def vespa_feed(endpoint, feed, namespace, doc_type): - if doc_type == "paragraph" or doc_type == "term" or doc_type == "doc": + if doc_type == "paragraph" or doc_type == "term" or doc_type == "doc" or doc_type == "code_snippet": splits = re.split(r'/|\.', endpoint) app_string = splits[3] + '.' + splits[2] print(subprocess.run(['./vespa', 'feed', '-a', app_string, '-t', endpoint, feed], capture_output=True))