Say for example I have a user and I want to store what schools he went
to (for facetted search)
I would use a multivalue facet field in my user document, for example
it would be called user_schools - It will store the school names.
Now i can create that document fine, but I'm not sure on what is the
proper approach on updating the facet values, say at some point I want
to add(or remove) a new school for that existing user.
Do i have to:
- find the existing doc, update the user_schools values, save the
document.
- can i just do a save request with the doc unique id and just the new
value for that facet field (since in theory if the id alreday exists
it should just update it) .... but how would that work as far as
removing a facet value ?
Any examples on updating a zoie document, in particular facet values ?
Thanks.
--
You received this message because you are subscribed to the Google Groups "zoie" group.
To post to this group, send email to zo...@googlegroups.com.
To unsubscribe from this group, send email to zoie+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zoie?hl=en.
- Is version meant to be updated(+1) at each document modification ?
- Is version meant to be updated only when the document "model" has
changed (ie: new fields) ?
- Does ZoieSystem.getCurrentVersion() has to do with this or not ?
In general what does version refer to, and what is the suggested way
to maintain/use it.
If sone doc explains this let me know.
Thanks.
Now one more Question:
You said : "BrowseResult is only for searching, you have to create
ZoieIndexable
objects for indexing."
Is there an existing facility to create a ZoieIndexeable from a
BrowseResult, or do I have to roll my own ? (or alternatively can i
find/get a ZoieIndexeable directly by it's id rather than having to
deal with the BrowseResult).
Thanks.
Thanks.
It's not a problem, but I'm a bit surprised, don't you guys ever have
to update a document like i want to do here ?
Or do you actually do this and rolled your own implementations whihc
just aren't n OSS part of the project (zoie/bobo)
Thanks.