We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04950bc commit 52e64d1Copy full SHA for 52e64d1
feed_to_vespa.py
@@ -71,7 +71,7 @@ def vespa_remove(endpoint, doc_ids, namespace, doc_type):
71
72
73
def vespa_feed(endpoint, feed, namespace, doc_type):
74
- 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":
75
splits = re.split(r'/|\.', endpoint)
76
app_string = splits[3] + '.' + splits[2]
77
print(subprocess.run(['./vespa', 'feed', '-a', app_string, '-t', endpoint, feed], capture_output=True))
0 commit comments