Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
glebashnik committed Sep 27, 2024
1 parent 04950bc commit 52e64d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feed_to_vespa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 52e64d1

Please sign in to comment.