Skip to content

Advanced queries.  #1

Description

@hcanning2014

Hi how would you integrate a query like the below into your syntax. Say I wanted to return all items with finance in the title with a material type of books and limit results to 10.
Thanks.

{

  "queries": [
    {
      "target": {
        "record": {"type": "bib"},
        "field": {"tag": "t"
        }
      },
      "expr": {
        "op": "has",
        "operands": ["mockingbird"]
      }
    },
    "and",
    {
	"target": {
	"record": {"type": "bib"},
	 "field": {"marcTag": "245",
		   "ind1": "0",
		   "ind2": "1",
		   "subfields": "c"
       }
     },
     "expr": {
	"op": "has",
       "operands": ["lee"]
     }
    },
    "and",
    {
      "target": {
        "record": {"type": "bib"},
        "id": 30
      },
      "expr": {
        "op": "equals",
        "operands": ["a"]
      }
    },
    "and",
    {
      "target": {
        "record": {"type": "bib"},
        "specialField": 268
      },
      "expr": {
        "op": "equals",
        "operands": ["xxu"]
      }
    },
    "and",
    {
      "target": {
        "record": {"type": "order"},
        "id": 79003
      },
      "expr": {
        "op": "yesterday",
        "operands": [""]
      }
    }
  ]
}				

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions