Solr scheme for fields with multiple values

Hi. In my document, I have data like the cost of the lot and the type of lot. One document can have several values ​​Party and Party Type. For example, the first document will have the value Party as the type Pramod and Party as the client. The same document will have the value of the Party as XYZ and the type of Party as a supplier. I need to design the circuit in such a way that I can request the entire document, where client = pramod. I can do this by setting the two fields in the solr schema as client.name and the provider name. However, the problem is that the set of values ​​for the batch type is not defined, and new values ​​are likely to be added in the future.

+3
source share
3 answers

, , . . , :

+PartyValue:Pramod +PartyType:Supplier

Solr .

+2

:

  • PartyValue PartyType. Aaron ( PartyValue PartyType).
  • PartyValue. , , , multiValued = true.

    + combinationField: ( pramod)

, , A, - B; , / A/B.

+2

, 3- document id Party Value Party Type. 3 . 1- : 1 : Pramod : . 2- : : 1 : Raj Party : . 3- : 2 : Pramod : . , SQL, Party Value Pramod Party Type as Client.

solr, Solr. 2 solr. Party Party + Pramod + , solr , Pramod ,

0
source

Source: https://habr.com/ru/post/1756176/


All Articles