On Thu, May 30, 2013 at 5:01 PM, Jack Krupansky <j...@basetechnology.com> wrote: > You gave an XML example, so I assumed you were working with XML! >
Right, I did give the output as XML. I find XML to be a great document markup language, but a terrible command format! Mostly, due to (mis-)use of the attributes. > In JSON... > > [{"id": "doc-id", "tags": {"add": ["a", "b"]}] > > and > > [{"id": "doc-id", "tags": {"set": null}}] > Thank you! That is quite more intuitive and less ambiguous than the XML, would you not agree? > BTW, this kind of stuff is covered in the book, separate chapters for XML > and JSON, each with dozens of examples like this. > I have not posted on the book postings, but I will definitely order one. My vote is for spiral bound, though I know that the perfect-bound will look more professional on a bookshelf. I don't even care what the book costs, within reason. Any resource that compiles in a single package the wonderful methods that yourself and other contributors mention here and in other places online, will pay for itself in short order. Apache Solr is an amazing product, but it is often obtuse and unintuitive. Other times one does not even know what Solr is capable of, such as the case in this thread, where I was parsing entire documents to change the multiField value. Thank you very much! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com