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
2
votes
1 answer

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 reuse it in each struct through out the schema?
SirGanya
  • 142
  • 1
  • 9
2
votes
2 answers

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 functionality where a customer can filter those…
Alexander Solovyov
  • 1,526
  • 1
  • 13
  • 21
2
votes
2 answers

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 the services are up or not. The cluster where I…
Yash Kasat
  • 203
  • 1
  • 5
2
votes
1 answer

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 had config node, container node, and content…
Yash Kasat
  • 203
  • 1
  • 5
2
votes
2 answers

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 * where \ …
Nigat
  • 81
  • 3
2
votes
1 answer

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.factor": 0.7, "ranking.profile": "default", "yql": "select id,…
2
votes
1 answer

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 # That might have several items like: "blue", "black and purple",…
kaega
  • 75
  • 6
2
votes
1 answer

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": "75%", "fields": [], …
2
votes
1 answer

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 that field in ranking and searching seems to break…
Kyle Rowan
  • 87
  • 1
  • 4
2
votes
1 answer

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 chain = Chain<>(new DomainSearcher()) Execution.Context context =…
Kyle Rowan
  • 87
  • 1
  • 4
2
votes
1 answer

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 docID, I get 0 hits. I'm using example code from…
kaega
  • 75
  • 6
2
votes
1 answer

IS there any changes in vespa installation?

We are facing some issues in Vespa installation on AWS EC2 centos instance, we are using the following steps for installation. curl -s https://raw.githubusercontent.com/vespa-engine/sample-apps/master/aws_bootstrap.sh aws_bootstrap.sh replace fqdn…
suyash308
  • 347
  • 1
  • 7
2
votes
1 answer

Creating dynamic document type in Vespa

Like we can define index pattern in Elasticsearch and then keep on creating new indices with same mapping, is there any way to create dynamic document type in Vespa? Our use case is - depending upon one of the keys' value, we need to put that in a…
Harsh Choudhary
  • 475
  • 5
  • 12
2
votes
1 answer

Unable to push vespa metrics to cloudwatch

Basically I need to monitor vespa metrics and for that I am trying to implement method to push metrics to cloudwatch. This is the document that I am referring to https://docs.vespa.ai/documentation/monitoring.html I have added the credentials file…
Yash Kasat
  • 203
  • 1
  • 5
2
votes
1 answer

Is it possible to create a JSON array inside a JSON object in search definition and all fields are searchable in vespa.ai?

I need to create a search definition file in Vespa where I can a JSON array inside JSON object with all fields searchable for example- { "department": "education", "designation": "student", "person": { "name": "steve", "city":…
suyash308
  • 347
  • 1
  • 7