Frage

ich will Facettierung zählt auf einem Multi bewerteten Feld filtern (keine docs)

Zum Beispiel:

select?q=*:*&rows=5&facet=true&facet.limit=5&facet.field=productID&facet.sort=true

ist es eine Chance, zählt auf meinem facet.field productId zu filtern?

In Anbetracht der vorherigen Abfrage, was ich bekommen ist:

<lst name="facet_counts">
<lst name="facet_queries"/>
−
<lst name="facet_fields">
−
<lst name="productID">
**<int name="EG7SpTw03mJ25vxS5jcB24">603</int>**
<int name="E53OBaX5hjGDAKzbHHaDG1">573</int>
<int name="sSLMrsA0wjLF8iWRAbzNq4">415</int>
<int name="ijcfPOTpg3eeGoXSW8h8L5">336</int>
<int name="Lij0a3kVgQzLxtOMgOXb06">296</int>
</lst>
</lst>
<lst name="facet_dates"/>
</lst>

Ich will nur die Abfrage filtern, um Ergebnisse zu erzielen, wie:

         -          -          603     573     415     336     296                    

 <lst name="facet_counts">
    <lst name="facet_queries"/>
    −
    <lst name="facet_fields">
    −
    <lst name="productID">
    <int name="E53OBaX5hjGDAKzbHHaDG1">573</int>
    <int name="sSLMrsA0wjLF8iWRAbzNq4">415</int>
    <int name="ijcfPOTpg3eeGoXSW8h8L5">336</int>
    <int name="Lij0a3kVgQzLxtOMgOXb06">296</int>
    <int name="Lij0a3kVgQzLxtOMYERESW">293</int>
    </lst>
    </lst>
    <lst name="facet_dates"/>
    </lst>

Ich will nur von productId filtern: EG7SpTw03mJ25vxS5jcB24 ...

THX

War es hilfreich?

Lösung

Nun, ich die Lösung gefunden, es ist nur die facet.prefix Parameter

wählen q = : & rows = 5 & Facette = true & facet.limit = 5 & facet.field = ProduktID & facet.sort = true & facet.prefix = EG7SpTw03mJ25vxS5jcB24

Der Ausgang i erhalten ist:

<lst name="facet_counts">
<lst name="facet_queries"/>
−
<lst name="facet_fields">
−
<lst name="taxonUUID">
<int name="EG7SpTw03mJ25vxS5jcB24">603</int>
</lst>
</lst>
<lst name="facet_dates"/>
</lst>

Ich werde eine neue komplexere Frage zu diesem Thema machen ...

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top