---
title: "sphinx,coreseek中返回的结果数"
author: "phpseyo"
date: "2012-09-05T16:00:08Z"
tags: []
categories: ["开源软件"]
slug: "sphinx-coreseek"
draft: false
lastmod: "2012-09-05T16:00:08Z"
id: 1672033
url: "https://phpseyo.iteye.com/blog/1672033"
---

各个区别如下：

num\_matches: 当前返回的结果数，&lt;= limit设置值。

max\_matches: 最多返回的结果数，默认为1000，用户最多只能看到1000条搜索结果。

total\_found: 结果总数。索引中所有满足查询条件的文档总数。

total: 最多返回结果数，取值取决于max\_matches值和total\_found值。如果total\_found数超过max\_matches，则total = max\_matches，否则，total = total\_found。可以用于分页。