-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When type is "resource" nothing is indexed #9
Comments
It seems that at its current state Any thoughts on this? |
OK, for my case I have changed the query as follows: (which I don't propose to be used as is, but in any case I put it here for anyone facing a similar issue)
a) The nested query is called when value is null which occurs when type is "resource" or "resource:item" This is just a proposal. It works for my case but it's not generic enough to cover all cases (it's a good start though) |
Let's say one of the indexed field is:
When you create an item and set dcterms:title to any literal text (e.g. "My nice title") then everything works nice.
If instead of Text though you want to add an Omeka resource then nothing happens because there is no "@value" to use for the indexing. One solution is to check if the field is of type "resource" and then instead of @value to use "display_title"
I hope it's clear what the problem is exactly...
For type: "literal" an example (which works fine) of an item is
For type: "resource" an example (which doesn't work) of an item is
Thank you in advance
The text was updated successfully, but these errors were encountered: