You'll need to change the schema fields to "dymanic_field" in order to use wildcards (*). Can you update the schema and test the issue again?<div><br></div><div>Thanks,</div><div>Dan</div><div><br></div><div>
<div>Daniel Reverri<br>Developer Advocate<br>Basho Technologies, Inc.<br><a href="mailto:dan@basho.com">dan@basho.com</a><br>
<br><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 2:13 PM, Germain Maurice <span dir="ltr"><<a href="mailto:germain.maurice@linkfluence.net">germain.maurice@linkfluence.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>

  
    
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi Dan,<br>
    <br>
    No, i didn't change it.<br>
    <br>
    <br>
    Le 05/07/11 19:17, Dan Reverri a écrit :
    <div><div></div><div class="h5"><blockquote type="cite">Hi Germain,
      <div><br>
      </div>
      <div>Did you change the fields to "dynamic_field" in the schema?</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Dan</div>
      <div><br clear="all">
        Daniel Reverri<br>
        Developer Advocate<br>
        Basho Technologies, Inc.<br>
        <a href="mailto:dan@basho.com" target="_blank">dan@basho.com</a><br>
        <br>
        <br>
        <div class="gmail_quote">On Tue, Jul 5, 2011 at 9:51 AM, Germain
          Maurice <span dir="ltr"><<a href="mailto:germain.maurice@linkfluence.net" target="_blank">germain.maurice@linkfluence.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"> Thanks Dan,<br>
              <br>
              I changed the fields in the schema as this :<br>
              - nsid -> *_nsid<br>
              - favedate -> *_favedate<br>
              - date_faved -> *_date_faved <br>
              <br>
              In order to take it in account i did :
              <div><br>
                search-cmd set-schema photostest My.schema<br>
              </div>
              <div> search-cmd clear-schema-cache<br>
              </div>
              and reindexing data (reading/writing the documents in
              their own place)<br>
              <br>
              No change :(<br>
              I tried to use the fields : fans_data_nsid,
              fans_data_favedate<br>
              but no better result.<br>
              <br>
              I'm using Riak Search 0.14.2<br>
              <br>
              Just for checking :<br>
              curl <a href="http://localhost:8098/riak/photostest" target="_blank">http://localhost:8098/riak/photostest</a><br>
{"props":{"precommit":[{"fun":"precommit","mod":"riak_search_kv_hook"}]...}<br>
              <br>
              Le 05/07/11 18:27, Dan Reverri a écrit :
              <div>
                <div>
                  <blockquote type="cite">Hi Germain,
                    <div><br>
                    </div>
                    <div>It looks like your document has nested fields
                      which means the schema you have defined won't
                      match the fields produced by the pre-commit hook.
                      The pre-commit hook flattens JSON documents using
                      an underscore ("_") between nested fields (e.g. <span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">fans_data_nsid);

                        your schema should be using the flattened field
                        name.</span></div>
                    <div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>
                      </span></div>
                    <div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Thanks,</span></div>
                    <div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Dan</span></div>
                    <div><br clear="all">
                      Daniel Reverri<br>
                      Developer Advocate<br>
                      Basho Technologies, Inc.<br>
                      <a href="mailto:dan@basho.com" target="_blank">dan@basho.com</a><br>
                      <br>
                      <br>
                      <div class="gmail_quote">On Tue, Jul 5, 2011 at
                        7:05 AM, Germain Maurice <span dir="ltr"><<a href="mailto:germain.maurice@linkfluence.net" target="_blank">germain.maurice@linkfluence.net</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"> Hello
                          everybody,<br>
                          <br>
                          I have a problem with Riak Search. I tried to
                          find the solution by my own, i tried all the
                          solutions i found and no results.<br>
                          <br>
                          Firstly, i tried to use it with the default
                          schema, it works but it indexes too much data.<br>
                          So, i set my own schema as this :<br>
                          {<br>
                             schema,<br>
                             [<br>
                                 {version, "1.1"},<br>
                                 {n_val, 1},<br>
                                 {default_field, "nsid"},<br>
                                 {analyzer_factory, {erlang,
                          text_analyzers, standard_analyzer_factory}}<br>
                             ],<br>
                             [<br>
                                 {field, [<br>
                                     {name, "favedate"},<br>
                                     {type, string},<br>
                                     {analyzer_factory, {erlang,
                          text_analyzers, standard_analyzer_factory}}<br>
                                 ]},<br>
                          <br>
                                 {field, [<br>
                                     {name, "date_faved"},<br>
                                     {type, string},<br>
                                     {analyzer_factory, {erlang,
                          text_analyzers, standard_analyzer_factory}}<br>
                                 ]},<br>
                          <br>
                                 %% Everything else is skipped<br>
                                 {dynamic_field, [<br>
                                     {name, "*"},<br>
                                     {skip, true}<br>
                                 ]}<br>
                             ]<br>
                          }.<br>
                          <br>
                          Hook on precommit of my buckets are ok.<br>
                          I set the schema for each of my buckets as
                          this : "search-cmd set-schema photostest
                          My.schema"<br>
                          Did a "search-cmd clear-schema-cache" command.<br>
                          <br>
                          I re-indexed all of my documents of the bucket
                          however, these documents are not indexed.<br>
                          An example :<br>
                          <br>
                          { "fans":{<br>
                             "data":[{"nsid":"83786678@N00",<br>
                                     "favedate":"1309539453"}<br>
                                       ,{"nsid":"33233619@N02",<br>
                                        "favedate":"1309539169"}]<br>
                           , ...<br>
                          Here is the answer of the index :<br>
{"responseHeader":{"status":0,"QTime":2,"params":{"q":"fans_data_nsid:83786678@N00","q.op":"or","filter":"","wt":"<br>

json"}},"response":{"numFound":0,"start":0,"maxScore":"0.0","docs":[]}}<br>
                          <br>
                          <br>
                          thank you !<br>
                          <br>
                          -- <br>
                          Germain Maurice<br>
                          Administrateur Système/Réseau<br>
                          Tel : +33.(0)1.42.43.54.33<br>
                          <br>
                          <a href="http://www.linkfluence.net" target="_blank">http://www.linkfluence.net</a><br>
                          <br>
                          <br>
_______________________________________________<br>
                          riak-users mailing list<br>
                          <a href="mailto:riak-users@lists.basho.com" target="_blank">riak-users@lists.basho.com</a><br>
                          <a href="http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com" target="_blank">http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com</a><br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <br>
                  <pre cols="72">-- 
Germain Maurice
Administrateur Système/Réseau
Tel : +33.(0)1.42.43.54.33

<a href="http://www.linkfluence.net" target="_blank">http://www.linkfluence.net</a></pre>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            riak-users mailing list<br>
            <a href="mailto:riak-users@lists.basho.com" target="_blank">riak-users@lists.basho.com</a><br>
            <a href="http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com" target="_blank">http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
riak-users mailing list<br>
<a href="mailto:riak-users@lists.basho.com">riak-users@lists.basho.com</a><br>
<a href="http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com" target="_blank">http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com</a><br>
<br></blockquote></div><br></div></div>