Hello Marius, Yes, you can by just specifying those fields in the schema, e.g. field_1_register. For example, I created similar fields in this test (using a custom schema, inlined): https://github.com/basho/riak_test/pull/800/files#diff-ab08303805d0b8fe5d7fe683273b2fbfR75 <https://github.com/basho/riak_test/pull/800/files#diff-ab08303805d0b8fe5d7fe683273b2fbfR75>, and then set them in the map like so: https://github.com/basho/riak_test/pull/800/files#diff-ab08303805d0b8fe5d7fe683273b2fbfR178 <https://github.com/basho/riak_test/pull/800/files#diff-ab08303805d0b8fe5d7fe683273b2fbfR178>. Obviously, you then don’t need the default, embedded dynamic *_register fields and such, which captures all of them.
Hope that helps! Zeeshan Lakhani programmer | software engineer at @basho | org. member/founder of @papers_we_love | paperswelove.org twitter => @zeeshanlakhani > On Jul 31, 2015, at 10:59 AM, Marius Cobzarenco <mar...@reinfer.io> wrote: > > Hi all, > > I was curios if there's a way to enable Solr indexing on only some of the > fields of a Riak CRDT Map (not all of them). E.g. for a map: > [{"field_1", "register"}, {"field_2", "register"}] I would like to _only_ > create the Solar index field_1_register . > > By default if I enable search on a bucket with maps, Riak creates Solr > indexes for all fields in the map. > https://docs.basho.com/riak/latest/dev/search/search-data-types/ > <https://docs.basho.com/riak/latest/dev/search/search-data-types/> > > Many thanks, > Marius > > > > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com