question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When searching for a Model by exact name, all models are returned

See original GitHub issue

I noticed when issuing a search request on vorto.eclipse.org with an expression of ǹame:CoffeeMaker I get all models of the repository as a result. Only when specifying name:CoffeeMaker* I get two results back. Is this intended?

I read in #1833 that the asterisk was only supported at the end and if I understood it correctly also without the asterisk at all. Maybe I’m mistaken here.

What happens?

The following query returns all models:

https://vorto.eclipse.org/api/v1/search/models?expression=name:CoffeeMaker*

What should happen?

It should return only one result in the response array. The way it responds now is confusing because the searched model does exist but is not returned in the search. Although this might be a strange search query, if you somehow now or guessed the name of a model.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Mar 25, 2020

@kolotu indeed, the new search is on. @w4tsn closing this. Please find the new documentation on search here. Specifically to this issue, an untagged search by model name my return a slightly broader result than a tagged searched by name:... - but the issue should be resolved. Also note that model type searches need to be tagged now.

0reactions
kolotucommented, Mar 25, 2020

@mena-bosch this can be closed now, right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Searching models using a where like query in Laravel
Searching Eloquent models​​ This will return all records that have a name or email that contains the string in $searchTerm . If you're...
Read more >
Querying full name in Django - Stack Overflow
I used this Query to search firstname, lastname, also the fullname. It solved my problem. from django.db.models import Q, ...
Read more >
Django Tutorial Part 3: Using models - Learn web development
Within each of the boxes, you can see the model name, the field names, and types, and also the methods and their return...
Read more >
Overview of Attribution modeling in MCF - Analytics Help
An attribution model is the rule, or set of rules, that determines how credit for sales and conversions is assigned to touchpoints in...
Read more >
Making queries | Django documentation
Refer to the data model reference for full details of all the various model lookup ... TextField() def __str__(self): return self.name class Author(models....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found