Questions tagged [vespa]
Questions related to the open big data serving engine Vespa.
184
questions
1
vote
1
answer
27
views
Deploy Vespa.ai multinode to Kuberentes
Looking for a solution to deploy multinode vespa to Kuberentes. I've refered docs but there is no info about deploying multinode to K8s.
2
votes
1
answer
38
views
Parent-Child Mode cannot be searched by parent column
I follow this article
https://blog.vespa.ai/parent-child-in-vespa/
this is OK
vespa query -v 'yql=select * from ad where ad_campaign_budget < 500'
but this cannot find any result
vespa query -v '...
0
votes
2
answers
24
views
vespa deploy --wait 300 app-1-getting-started get error-code "METHOD_NOT_ALLOWED"
When I follow this article to practice vepsa
https://docs.vespa.ai/en/tutorials/news-1-getting-started.html
when i do this step
vespa deploy --wait 300 app-1-getting-started
i got this error
{
&...
1
vote
2
answers
45
views
Dynamic addition of fields in vespa
In Elastic Search, to add new fields while running the application we have to provide
"dynamic":true
More info about the same: https://www.elastic.co/guide/en/elasticsearch/reference/current/...
1
vote
1
answer
39
views
Vespa visitor indexing documents
I want to attribute an ID to every document in a vespa cluster.
But I don't completely understand how visitors work in vespa.
Can I get a shared field (meaning shared by all instances of my visitor), ...
3
votes
1
answer
40
views
Starting and stopping services in vespa
In the benchmarking page "https://docs.vespa.ai/en/performance/vespa-benchmarking.html" it is given that we need to restart the services after we increase the persearch thread using the ...
0
votes
2
answers
76
views
vespa json object changes to string
i have vespa verion 5.220.14 installed in one server where i have used json (provided by gson lib ) in searcher, while i am deploying the same code in vespa version 5.550 in a diffrentserver it is not ...
0
votes
1
answer
53
views
How to downgrade the version of the vespa engine installed in ec2 server
I have Vespa version 7.534.29 compiled with go1.15.14 on linux/amd64 how can i downgrade it to 7.220.14 as its causing my custom searchers to not work in production
0
votes
1
answer
41
views
vespa create user fails to create a new profile in db
get endpoint is working in vespa db installed in an ec2 server but while creating the new user in docname its giving us 500 error with logs in vespa as
1643432914.009710 172.18.3.75 24114/15 ...
2
votes
1
answer
23
views
Versioning document changes in Vespa
I would like to allow for versioning of text in Vespa. If a user changes certain fields over time the changes would be tracked and versions could be restored.
I imagine a solution running in parallel ...
1
vote
1
answer
60
views
Cannot index a document in a self-hosted Vespa instance
We're trying to build our own Vespa cluster starting with a Kubernetes quick start, and indexing a document returns a "no space" error.
The problem is that we can't really understand where ...
0
votes
2
answers
178
views
Queries are very slow in local vespa
I am having difficulty executing correctly a vespa query.
i want to query 2 different index fields with or between them, i want to to the equivalent of elastic match query.
i got a lot of soft ...
0
votes
1
answer
45
views
Running Vespa outside Docker
I'd like to run an instance of Vespa outside of a container (e.g. Docker). The Docker path is definitely quite convenient and works great. But I would like to go thru the process by hand of setting up ...
1
vote
0
answers
33
views
vespa `Illegal query` when testing a deployed search
Following the part 6 of the tutorial: https://docs.vespa.ai/en/tutorials/news-6-recommendation-with-searchers.html I produced the mavel-compiled folder and zip file:
(vespa) raphy@pc:~/vespa/sample-...
2
votes
1
answer
31
views
`vespa` tutorial : ./src/python/user_search.py U33527 10 KeyError: 'children'
I'm following step by step the Vespa tutorials: https://docs.vespa.ai/en/tutorials/news-5-recommendation.html
(vespa) raphy@pc:~/vespa/sample-apps/news$ python3 src/python/train_cold_start.py mind 10
...
1
vote
2
answers
82
views
What is the equivalent to a ElasticSearch Instance and Index in Vespa?
Basic question for a Vespa newbie: In ElasticSearch I stand up a cluster of some number of nodes using best practices. I then create an Index for each of my tenants/clients, thus walling off my ...
2
votes
1
answer
31
views
Is there a way to reuse a struct in Vespa
Is there a way to reuse a set of fields in a Vespa Schema?
If I had a set of fields that were structs and each struct had a set of identical fields is there a way to define the identical set once and ...
1
vote
1
answer
22
views
Is there a way to create an immutable value in a document with Vespa
Is is possible to create a new Vespa doc and have one key/value pair immutable for the life of that doc?
1
vote
1
answer
76
views
Vespa response: Summary data is incomplete: Timed out waiting for summary data
I am deploying a simple text retrieval system with Vespa. However, I found when setting topk to some large number, e.g. 40, the response will include the error message "Summary data is incomplete:...
1
vote
1
answer
62
views
Mismatch between content node storage ratio and server storage
I am using Vespa in a docker with one single content node on a Ubuntu server. The total storage is:
[root@vespa-container /]# df -h .
Filesystem Size Used Avail Use% Mounted on
overlay ...
1
vote
2
answers
89
views
Ecommerce and Vespa: filtering customer's wishlist
Let's suppose an ecommerce site has wishlisting functionality. Some users wishlist a lot of products (on a scale of tens of thousands). Total amount of products is in millions. We want to implement ...
1
vote
1
answer
46
views
vespa: query/result.getContext(true).logValue(key,value) not working in accesslog
i want to add a custom key/value pair to the access log, as https://docs.vespa.ai/en/access-logging.html
test is
@Override
public HttpResponse handle(HttpRequest request) {
Result result = null;
...
3
votes
2
answers
106
views
Vespa.ai exploit multiple instances to answer queries
I have Vespa.ai cluster with multiple container/content nodes. After Vespa is loaded with data, my app sends queries and gets the data from Vespa. I want to be sure that I utilize well all the nodes ...
2
votes
2
answers
34
views
Which all metric to trace to determine if the resource needs to be added
I need to track the resources being used by the Vespa services so that I can increase the capacity of the cluster before the limit is reached to prevent any major downtime. And also to monitor if all ...
1
vote
1
answer
68
views
I am not able to add data in the vespa
I am not able to add data to the database even though the database is up.
I have checked it using
vespa-get-cluster-state
The error message that I got is in the image below.
Please let me know what ...
1
vote
1
answer
86
views
How to setup vespa nodes for High availability
I have to deploy the Vespa database and the requirement is that it should be highly available. I have 3 instances available for the database. I have successfully deployed the database where 1 instance ...
2
votes
1
answer
200
views
Command works inside a docker container but fails with docker exec
I'm using containerized Vespa.ai DB, and I want to execute the following commands from the host:
vespa-stop-services
vespa-remove-index
vespa-start-services
If I execute the following vespa-stop-...
2
votes
2
answers
92
views
Dynamic targetHits in Vespa yql
I'm trying to create a Vespa query where I would like to set the rate limit of the targetHits. For example the query below has a constant number of 3 targetHits:
'yql': 'select id, title from sources *...
1
vote
1
answer
61
views
Schema based facets in Vespa
Is there any way to implement schema based facets in Vespa?
For Eg:
My schema contains the fields: album, artist and year. For that the schema facet would be:
[{"field":".fields", &...
1
vote
1
answer
70
views
How to provide OpenNLP model for tokenization in vespa?
How do I provide an OpenNLP model for tokenization in vespa? This mentions that "The default linguistics module is OpenNlp". Is this what you are referring to? If yes, can I simply set the ...
1
vote
1
answer
67
views
Does Vespa support field projection for selected retrieval?
Does Vespa support field projection for selected retrieval? (Similar to https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html in Elastic search)
Interested in:
select all ...
2
votes
1
answer
115
views
How to check not exist field in document in vespa
curl --location --request POST 'http://xxxxxx/search/' \
--header 'Content-Type: application/json' \
--data-raw '{
"offset": 0,
"hits": 60,
"ranking.softtimeout....
2
votes
1
answer
118
views
Is there a way of performing a weighted elementSimilarity with Vespa?
I having trouble dealing with multivalue query items and fields in terms of element similarity. For example, if we have an array of strings like such:
field colors type array<string>
# That ...
3
votes
3
answers
465
views
How to include a OneHot in an ONNX coming from PyTorch
I'm using PyTorch to train neural-net and output them into ONNX. I use these models in a Vespa index, which loads ONNXs through TensorRT. I need one-hot-encoding for some features but this is really ...
0
votes
1
answer
45
views
primary key must not be string?
define a schema just like this:
field id type string {
indexing: summary | index
}
then post some data
curl --location --request POST 'http://xxxxxxx:xxx/document/v1/...
1
vote
1
answer
90
views
Need reason for why Vespa database stops suddenly?
I am using vespa as a database for some application. It was running perfectly okay and suddenly stops working. When checked with command vespa-get-cluster-state it returned the result as shown below:
...
2
votes
1
answer
83
views
ES "minimum_should_match" query how to transform to vespa query?
we decide migrate es to vespa ES "minimum_should_match" query how to transform to vespa query ?
eg: es query:
"query_string": {
"minimum_should_match&...
1
vote
1
answer
43
views
sub group distribution-key is strange
The following is from vespa doc. Since documents are distributed to all groups, sub group is replia. Why distribution-key s are different among subgroups?
0,1,2 for group0, while 3,4,5 for group1
In ...
3
votes
1
answer
95
views
Vespa.ai: How to make an array of floats handle null values?
I am trying to make a simple Vespa application, where one of my data fields are an Array. However the array contains some null values. For instance an array like: [2.0,1.4,null,5.6,...].
What can I ...
1
vote
1
answer
93
views
How to take backup documents in Vespa
I have an instance on which Vespa is installed. This system is acting as admin as well as content node and cluster node.
We are also using the embedded zookeeper in Vespa for our use case.
Requirement:...
1
vote
1
answer
40
views
Without session id, how to find the content url of application. I only know the application name
If I know only the application name, want to have a look at its schema, what can I do?
In other words, how to get the conent url of application by application name?
1
vote
0
answers
56
views
The vespa returns an error when I put one document with documentAPI
I build vespa, and install it on physical machine, call /opt/vespa/bin/vespa-start-configserver and /opt/vespa/bin/vespa-start-services .
I submit my application package normally, and http://localhost:...
2
votes
1
answer
75
views
Using inherited struct array attributes in ranking an searching
I am currently using document inheritance to avoid having to include specific fields in every document type that I make. It works for most scenarios, but when an array of structs is inherited, using ...
2
votes
1
answer
24
views
How to properly invoke search from another component
Hi I am trying to execute a search from within a processing chain. Currently I am creating the Execution in the following way
Chain<Searcher> chain = Chain<>(new DomainSearcher())
...
1
vote
1
answer
202
views
Unable to setup Vespa container on multiple instances
I have two instances where I have to deploy Vespa on a docker container. One container will act as a config cluster, container cluster, and content cluster while the other will act as a container ...
4
votes
1
answer
82
views
Searching non-primitive types within a struct
I need to search within a an array nested in another array. Let's say I have the following document
schema foos {
document foos {
struct foo {
field bars type array<string&...
2
votes
1
answer
51
views
Recall returns nothing when querying rank-profile
I have a sample Vespa instance and I want to train a lightgbm model from the rank-profile.
https://docs.vespa.ai/documentation/learning-to-rank.html
However, anytime I specify the recall with the ...
3
votes
1
answer
174
views
What is the reason of below error in vespa.ai?
We are facing this below error in Vespa, after restarting the cluster we got this below issue.
1600455444.680758 10.10.000.00 1030/1 container Container.com.yahoo.filedistribution....
3
votes
1
answer
200
views
How to use ML models in Vespa.ai?
We are trying to use the ML model in Vespa, we have textual data stored in Vespa, can somebody help us with the below question-
One example of onnx model trained using scikit-learn used in Vespa.
...
5
votes
1
answer
70
views
Disable caching in vespa
I am doing load test on an application that uses Vespa as a database. I have some sample records for which I am doing the test. Now when I run the load test for the first time, Vespa caches the query ...