---
name: "LucyX::Search::MockMatcher"
section: "3pm"
platform: "linux"
package: "liblucy-perl"
version: "0.3.3-7+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/LucyX::Search::MockMatcher"
---

# LucyX::Search::MockMatcher(3pm)

Matcher with arbitrary docs and scores.

## NAME

LucyX::Search::MockMatcher - Matcher with arbitrary docs and scores.

## DESCRIPTION

Used for testing combining Matchers such as ANDMatcher, MockMatcher allows arbitrary match criteria to be supplied, obviating the need for clever index construction to cover corner cases.

MockMatcher is a testing and demonstration class; it is unsupported.

## CONSTRUCTORS

### new( \[*labeled params*\] )

- •

  **doc\_ids** - A sorted array of doc\_ids.

- •

  **scores** - An array of scores, one for each doc\_id.
