I've tried multiple features, including nativeRank, but I get inconsistent results depending on the length of the query array as well as the field array. As I also want to be able to deal with misspellings, "blu" should have a very high match with "blue" - hence why I prefer elementSimilarity. I think I've tried most of the rank features in vespa, but I haven't found a better way to deal with this use case.
There are many ways to accomplish this but what is best depends on if you need free text style matching (linguistic processing of the string including tokenization and stemming) or not. It also depends on if this is just a ranking signal for documents that are already retrieved or used to retrieve documents.
If you don't need free text style matching but instead can use exact matching without linguistics processing (e.g using a fixed vocabulary) and this color ranking is just another ranking signal you should consider looking at using tensor ranking instead. Tensors are useful for ranking documents that are retrieved by the query operators, you cannot retrieve using a tensor (except for dense single order tensors using approximate nearest neighbor search). See tensor guide -user-guide.html.
If you need free text style matching there are also several approaches. In the below example I assume that you want to have text style matching and that a query term 'purple' should match the document with 'black and purple'. See matching documentation -reference.html#match
In the above query we retrieve documents where a field called 'foo' contains 'bar and for those documents the colors field is matched and ranking features are created (depending on which are used in the ranking profile).
Generally the query is a way to express how to retrieve documents, and the ranking profile determines how you rank those retrieved. The rank query operator is a nice way to be able to create matching ( Q-D interactions) ranking features without impacting recall.
There are also other more efficient ways including the wand query operator if you want to retrieve efficiently using the inner dot product between something in the query and in the document. See -wand-with-vespa.html
We thoroughly enjoyed our Vespa tour through Tuscany with our guide, Fabio. He looked just like our American Fabio, minus about 200 lbs. He stopped at many great sites and share just a shit ton of fun facts and wild stories. We highly recommend this tour with Fabio. Even my husband agrees that the scenery, food, wine, and Fabio eye candy was money well spent!
What an amazing experience! My fiance and I first time in Italy and first time on a vespa! Chris was an amazing guide and very attentive! I'd rate it higher if I could. Well worth every penny! Thank you again Chris for the tour and making sure we had fun and we're taken care of!
This was so fun! My husband and I had a great time riding a double Vespa. He did not have experience driving a Vespa before, but it was relatively easy to pick up and they do give a brief lesson before taking off on the roads. Great views, great lunch, and a great day doing something outside the city!
We do not organise hotel pick-ups for difficulties with parking and scheduling, but our meeting in front in Piazza dei Cavalleggeri is very central and should be easy to get to. We are just in front of the Biblioteca Nazionale (National Library) from which many hotels are located within easy walking distance of. Otherwise a taxi (you could ask your hotel to book it for you) would be the fastest option, dropping you off right at the entrance of the Biblioteca Nazionale (National Library).
c80f0f1006