<div dir="ltr"><div>Figured out: I had not defined my schema so the fields were defaulted to multi-valued.<br><br></div>I'll write up example and make suggestions to that section of the docs.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 28, 2017 at 7:21 AM, Tom McKay <span dir="ltr"><<a href="mailto:thomasmckay@redhat.com" target="_blank">thomasmckay@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I can find nothing about solr that would indicate the results I'm seeing versus the expected.<br><a href="http://yonik.com/solr-json-request-api/" target="_blank">http://yonik.com/solr-json-<wbr>request-api/</a><br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 28, 2017 at 6:42 AM, Tom McKay <span dir="ltr"><<a href="mailto:thomasmckay@redhat.com" target="_blank">thomasmckay@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>BTW, I figured it out with some help.<br><br></div>The fields necessary in solr json search results have examples in the crane tests[1]. Unfortunately, the version of solr I'm using, 6.4.0, has results that by default are formatted differently. Where crane expects "ir_stars:7", solr is returning "ir_stars:[7]". I am unsure why this is the case, nor do I know how to change the solr json results format. When I modified crane to parse the results, I could successfully docker search.<br><br></div><br><div><br><br>[1] <a href="https://github.com/pulp/crane/blob/67503493a2af22ea809f0880dd11b3b76f908a15/tests/search/test_solr.py#L346-L358" target="_blank">https://github.com/pulp/crane/<wbr>blob/67503493a2af22ea809f0880d<wbr>d11b3b76f908a15/tests/search/<wbr>test_solr.py#L346-L358</a><br>[2] <a href="https://github.com/pulp/crane/blob/67503493a2af22ea809f0880dd11b3b76f908a15/crane/search/solr.py#L48" target="_blank">https://github.com/pulp/crane/<wbr>blob/67503493a2af22ea809f0880d<wbr>d11b3b76f908a15/crane/search/<wbr>solr.py#L48</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Jan 27, 2017 at 3:38 PM, Michael Hrivnak <span dir="ltr"><<a href="mailto:mhrivnak@redhat.com" target="_blank">mhrivnak@redhat.com</a>></span> wrote:<br></span><div><div class="m_-7618125222302444709h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You found the missing link. Both search backends were designed to work for a particular user that already had the data populated into either GSA or solr. We don't provide any means for getting that data populated.<div><br></div><div>That said, search is not a very useful feature of docker. You can only search for repositories, and can only see a few tens of characters of text about each one. That's not nearly enough to help you decide if you want to use a particular repository, unless you just need to be reminded of the name of a repository you previously researched and decided to use.</div><div><br></div><div>Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-7618125222302444709m_-5763993705415513459h5">On Fri, Jan 27, 2017 at 2:28 PM, Tom McKay <span dir="ltr"><<a href="mailto:thomasmckay@redhat.com" target="_blank">thomasmckay@redhat.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-7618125222302444709m_-5763993705415513459h5"><div dir="ltr"><div><div>Does anyone have instructions for setting up solr for search? I
 am running a simple solr container[1] and have crane configured[2] to 
query it. However, I am missing the "data import handler" piece in solr,
 I think. I can see that a "docker search" successfully hits solr but 
has zero results.<br><br></div>Note: This is to address several requests
 to allow "docker search" to work with container repositories in 
foreman/katello[3] and Satellite-6.<br><br></div>Thanks!<br><br>[1] <a href="https://hub.docker.com/_/solr/" target="_blank">https://hub.docker.com/_/solr/</a><br>[2] <a href="http://docs.pulpproject.org/en/nightly/plugins/crane/index.html?highlight=crane#solr" target="_blank">http://docs.pulpproject.org/en<wbr>/nightly/plugins/crane/index.h<wbr>tml?highlight=crane#solr</a><br>[3] <a href="https://theforeman.org/plugins/katello/index.html" target="_blank">https://theforeman.org/plugins<wbr>/katello/index.html</a></div>
<br></div></div>______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/pulp-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>