lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kristaclaire14 <kcaromualdo...@gmail.com>
Subject Find value in Parent doc fields OR Child doc fields
Date Wed, 30 May 2018 01:01:05 GMT
Hi,

I want to query/find a value that may match on parent document fields or
child document fields. Is this possible using block join parent query
parser? How can I do this with solr nested documents? Here is the example
data:

[{
    "id":"1001"
    "path":"1.Project",
    "Project_Title":"Sample Project",
    "_childDocuments_":[
    {
        "id":"2001",
        "path":"2.Project.Submission",
        "Submission_No":"1234-QWE",
        "_childDocuments_":[
        {
            "id":"3001",
            "path":"3.Project.Submission.Agency",
            "Agency_Cd":"QWE"
        }
        ]
    }]
}, {
    "id":"1002"
    "path":"1.Project",
    "Project_Title":"Test Project QWE",
    "_childDocuments_":[
    {
        "id":"2002",
        "path":"2.Project.Submission",
        "Submission_No":"4567-AGY",
        "_childDocuments_":[
        {
            "id":"3002",
            "path":"3.Project.Submission.Agency",
            "Agency_Cd":"AGY"
        }]
    },{
        "id":"2003",
        "path":"2.Project.Submission",
        "Submission_No":"7891-QWE",
        "_childDocuments_":[
        {
            "id":"3003",
            "path":"3.Project.Submission.Agency",
            "Agency_Cd":"QWE"
        }]
    }]
}]

I want to retrieve all Projects with Project_Title:*QWE* OR
Submission_Submission_No:*QWE*. Thanks in advance.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Mime
View raw message