cambialens / lens-api-doc

10 stars 5 forks source link

Searching by simple patent family members returns the list of extended family members #28

Closed AaronBallagh closed 3 years ago

AaronBallagh commented 3 years ago

In some cases, searching for a lens_id in the simple patent family field family.simple.member.lens_id returns the list of extended patent family members rather than the simple patent family members. e.g.

{
    "query": {
        "match": {
            "family.simple.member.lens_id": "179-225-554-278-418"
        }
    },
    "include": ["lens_id", "families.simple_family.members", "families.extended_family.members"]
}

In this example, the patent record 179-225-554-278-418 has 4 simple family members and 28 extended family members, however searching by the family.simple.member.lens_id returns the list of 28 extended family members.

This appears to be an issue with the simple family members in the search index only, family member data in records returned in the response are correct.

denizk commented 3 years ago

This was fixed in a recent index update.