Ticket #58 (closed task: fixed)
Querying in a certain vtag-view requires to know ID of vtag field
| Reported by: | bruno | Owned by: | bruno |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | Indexer | Version: | |
| Keywords: | Cc: | lily-developers@… |
Description
Suppose you want to launch a query on SOLR where you only want to search for versions which have the 'live' tag.
You can do this by adding a condition on the @@vtag field, but this contains the ID of the vtag, which is clumsy to work with. Probably we should add an @@vtagName field (or reverse: make the current one @@vtagId). If people would rename vtag fields, than they'll have to rebuild their index.
Another way to handle this would be if this condition would be added by Lily, i.e. by a higher-level query interface which can perform the name to id translation.
Change History
comment:2 Changed 3 years ago by bruno
- Milestone set to 0.2
This is pretty important, should do something around it in 0.2
comment:6 Changed 2 years ago by bruno
Documentation still todo. The @@vtag contains the non-namespaced name of the vtag. When a vtag field type would be renamed, the index is not automatically updated to reflect this, it is up to the user to trigger a batch index rebuild. Should also mention that indexing of @@vtag/@@vtagId is not required.