11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

document sample<br />

<br />

<br />

1<br />

parent<br />

<br />

11<br />

Red<br />

XL<br />

6<br />

<br />

<br />

12<br />

Red<br />

XL<br />

7<br />

<br />

<br />

13<br />

Blue<br />

L<br />

5<br />

<br />

<br />

<br />

2<br />

parent<br />

<br />

21<br />

Blue<br />

XL<br />

6<br />

<br />

<br />

22<br />

Blue<br />

XL<br />

7<br />

<br />

<br />

23<br />

Red<br />

L<br />

5<br />

<br />

<br />

<br />

Queries are constructed the same way as for a<br />

Parent Block Join query. For example:<br />

http://localhost:8983/solr/bjqfacet?q={!parent<br />

which=type_s:parent}SIZE_s:XL&child.facet.field=COLOR_s<br />

As a result we should have facets for Red(1) and Blue(1), because matches on children id=11 and id=12 are<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

313

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!