Questions tagged [vespa]

Questions related to the open big data serving engine Vespa.

Use Stackoverflow for questions related to the open big data serving engine Vespa.

Info: http://vespa.ai

Documentation: http://docs.vespa.ai/

Github: https://github.com/vespa-engine

230 questions
1
vote
1 answer

equiv: "Could not add an item of type WORD_ALTERNATIVES"

Using equiv() on an empty table throws a strange error in vespa.ai 7.99.22: Could not add an item of type WORD_ALTERNATIVES: Equiv can only have word/int/phrase as children Definition: search post { document post { field description type…
doublemax
  • 443
  • 1
  • 4
  • 11
1
vote
2 answers

Case insensitive matching in 'vespa.ai'

How to disable casefolding using field-type string in vespa.ai? search post { document post { field token type string { indexing: index match: word rank: filter rank-type: empty …
doublemax
  • 443
  • 1
  • 4
  • 11
1
vote
1 answer

Sorting result set by date attribute in 'vespa.ai'

How to sort a resultset by date (unixtime)? search post { document post { field created type long { indexing: summary | attribute } field description type string { indexing: summary | index …
doublemax
  • 443
  • 1
  • 4
  • 11
1
vote
1 answer

Group structs by exploding map into a list and filtering with sameElement

Can vespa group on with a clause on struct.k1=x AND struct.k2=y and only getting the counts with how many structs match (not documents!, cause a document may have multiple structs that match) ? So it will explode all struct in a…
user42635
  • 38
  • 5
1
vote
1 answer

Error during application initialization : ClusterSearcher should have a top level dispatch

Application with multiple content and each content with multiple documents is throwing "ClusterSearcher should have a top level dispatch." when deployed on multi node cluster with multiple content nodes. The same is working on a single node cluster…
RameshR
  • 61
  • 3
1
vote
2 answers

How to use "map" data structure "in a query"

I want to include map in a vespa query (not a document attribute) and lookup it in expression, but I have some questions. Can I use map in a Vespa query? If it's possible, how to lookup the elements in expression? If it's impossible, can I use…
perrier
  • 13
  • 2
1
vote
0 answers

Vespa error container Container.com.yahoo.io.NativeIO warning native IO not possible failed to map segment from shared object: Operation not permitted

I am new to Vespa and is seeing the following message. Is it due to some permission issue ? Vespa is running on Redhat linux 7.6 container Container.com.yahoo.io.NativeIO warning native IO not possible due to…
RameshR
  • 61
  • 3
1
vote
2 answers

vespa-model-inspect throws Segmentation fault on Redhat 7.6

Getting Segmentation fault when executing any of the vespa-model-inspect commands. Vespa version 7.22.18 log_debug_message 'Starting vespa-model-inspect with : ' env LD_PRELOAD=/opt/vespa/lib64/vespa/malloc/libvespamalloc.so vespa-model-inspect-bin…
RameshR
  • 61
  • 3
1
vote
1 answer

Implementing guided navigation using vespa

I'm trying to implement guided navigation using vespa. At present, I am using grouping to implement it. I've written a query like this. SELECT * FROM entity where sddocname contains 'entity' | all(group(category) each(group(item_category)…
Raghu Venmarathoor
  • 858
  • 11
  • 28
1
vote
1 answer

How to add/remove elements in an array/map in a Searcher, programatically in Vespa?

I want to add elements to an array, or remove some keys from my map in my custom searcher results in Vespa. For ex: I have the following fields in my hit of the searcher: fields: n: 0, myArray: [0, 1, 2] myMap: {"key1":"value1",…
1
vote
2 answers

Problem about using semantic-rules with space trems

We reference https://docs.vespa.ai/documentation/reference/semantic-rules.html When we set the statement like this: i7 +> ?"iphone 7"; It works. However, when we are trying to state like this: iphone 7 +> ?i7; It fails when we searched it. Do you…
Ouyang Oo
  • 11
  • 1
1
vote
2 answers

Should ASCII control characters be stripped from documents before sending to Vespa?

I'm trying to store a document into Vespa with a string field. When using the document-api http endpoint it's getting rejected with a parsing error. I've validated that the correct JSON is being sent (other documents go through fine). Here is the…
1
vote
1 answer

How to get a sub-field of a struct type map, in the search response of YQL query in Vespa?

Sample Data: "fields": { "key1":0, "key2":"no", "Lang": { "en": { "firstName": "Vikrant", "lastName":"Thakur" }, "ch": { "firstName": "维克兰特", "lastName":"塔库尔" …
1
vote
1 answer

Enable CORS in vespa

How to enable CORS in vespa? I want to deploy my API's to swagger UI but due to CORS disbled in vespa, I am unable to do this. Is there any way to enable CORS in vespa or How should I use API's in swagger to use it? Please help.
Mohammad Sunny
  • 371
  • 1
  • 3
  • 15
1
vote
1 answer

Support of i18 in vespa

Is there support of i18 in vespa so that I can use different languages or vespa can provide me data in different languages? Where can I write properties file for different languages in vespa?
Mohammad Sunny
  • 371
  • 1
  • 3
  • 15