The SolrQuery class

(PECL solr >= 0.9.2)

はじめに

Represents a collection of name-value pairs sent to the Solr server during a request.

クラス概要

SolrQueryextendsSolrModifiableParamsimplements Serializable {
constintORDER_ASC = 0 ;
constintORDER_DESC = 1 ;
constintFACET_SORT_INDEX = 0 ;
constintFACET_SORT_COUNT = 1 ;
constintTERMS_SORT_INDEX = 0 ;
constintTERMS_SORT_COUNT = 1 ;
publicaddExpandSortField(string$field, string$order = ?): SolrQuery
publicaddFacetDateField(string$dateField): SolrQuery
publicaddFacetDateOther(string$value, string$field_override = ?): SolrQuery
publicaddFacetField(string$field): SolrQuery
publicaddFacetQuery(string$facetQuery): SolrQuery
publicaddField(string$field): SolrQuery
publicaddFilterQuery(string$fq): SolrQuery
publicaddGroupField(string$value): SolrQuery
publicaddGroupFunction(string$value): SolrQuery
publicaddGroupQuery(string$value): SolrQuery
publicaddGroupSortField(string$field, int$order = ?): SolrQuery
publicaddHighlightField(string$field): SolrQuery
publicaddMltField(string$field): SolrQuery
publicaddMltQueryField(string$field, float$boost): SolrQuery
publicaddSortField(string$field, int$order = SolrQuery::ORDER_DESC): SolrQuery
publicaddStatsFacet(string$field): SolrQuery
publicaddStatsField(string$field): SolrQuery
publiccollapse(SolrCollapseFunction$collapseFunction): SolrQuery
public__construct(string$q = ?)
public__destruct(): void
publicgetExpand(): bool
publicgetExpandFilterQueries(): array
publicgetExpandQuery(): array
publicgetExpandRows(): int
publicgetExpandSortFields(): array
publicgetFacet(): bool
publicgetFacetDateEnd(string$field_override = ?): string
publicgetFacetDateFields(): array
publicgetFacetDateGap(string$field_override = ?): string
publicgetFacetDateHardEnd(string$field_override = ?): string
publicgetFacetDateOther(string$field_override = ?): array
publicgetFacetDateStart(string$field_override = ?): string
publicgetFacetFields(): array
publicgetFacetLimit(string$field_override = ?): int
publicgetFacetMethod(string$field_override = ?): string
publicgetFacetMinCount(string$field_override = ?): int
publicgetFacetMissing(string$field_override = ?): bool
publicgetFacetOffset(string$field_override = ?): int
publicgetFacetPrefix(string$field_override = ?): string
publicgetFacetQueries(): array
publicgetFacetSort(string$field_override = ?): int
publicgetFields(): array
publicgetFilterQueries(): array
publicgetGroup(): bool
publicgetGroupFacet(): bool
publicgetGroupFields(): array
publicgetGroupFormat(): string
publicgetGroupFunctions(): array
publicgetGroupLimit(): int
publicgetGroupMain(): bool
publicgetGroupNGroups(): bool
publicgetGroupOffset(): int
publicgetGroupQueries(): array
publicgetGroupSortFields(): array
publicgetGroupTruncate(): bool
publicgetHighlight(): bool
publicgetHighlightAlternateField(string$field_override = ?): string
publicgetHighlightFields(): array
publicgetHighlightFormatter(string$field_override = ?): string
publicgetHighlightFragmenter(string$field_override = ?): string
publicgetHighlightFragsize(string$field_override = ?): int
publicgetHighlightMaxAlternateFieldLength(string$field_override = ?): int
publicgetHighlightMergeContiguous(string$field_override = ?): bool
publicgetHighlightRegexPattern(): string
publicgetHighlightRegexSlop(): float
publicgetHighlightSimplePost(string$field_override = ?): string
publicgetHighlightSimplePre(string$field_override = ?): string
publicgetHighlightSnippets(string$field_override = ?): int
publicgetMlt(): bool
publicgetMltBoost(): bool
publicgetMltCount(): int
publicgetMltFields(): array
publicgetMltMaxNumTokens(): int
publicgetMltMaxWordLength(): int
publicgetMltMinWordLength(): int
publicgetMltQueryFields(): array
publicgetQuery(): string
publicgetRows(): int
publicgetSortFields(): array
publicgetStart(): int
publicgetStats(): bool
publicgetStatsFacets(): array
publicgetStatsFields(): array
publicgetTerms(): bool
publicgetTermsField(): string
publicgetTermsLimit(): int
publicgetTermsLowerBound(): string
publicgetTermsMaxCount(): int
publicgetTermsMinCount(): int
publicgetTermsPrefix(): string
publicgetTermsReturnRaw(): bool
publicgetTermsSort(): int
publicgetTermsUpperBound(): string
publicgetTimeAllowed(): int
publicremoveExpandSortField(string$field): SolrQuery
publicremoveFacetDateField(string$field): SolrQuery
publicremoveFacetDateOther(string$value, string$field_override = ?): SolrQuery
publicremoveFacetField(string$field): SolrQuery
publicremoveFacetQuery(string$value): SolrQuery
publicremoveField(string$field): SolrQuery
publicremoveFilterQuery(string$fq): SolrQuery
publicremoveHighlightField(string$field): SolrQuery
publicremoveMltField(string$field): SolrQuery
publicremoveMltQueryField(string$queryField): SolrQuery
publicremoveSortField(string$field): SolrQuery
publicremoveStatsFacet(string$value): SolrQuery
publicremoveStatsField(string$field): SolrQuery
publicsetEchoHandler(bool$flag): SolrQuery
publicsetEchoParams(string$type): SolrQuery
publicsetExpand(bool$value): SolrQuery
publicsetExpandQuery(string$q): SolrQuery
publicsetExpandRows(int$value): SolrQuery
publicsetExplainOther(string$query): SolrQuery
publicsetFacet(bool$flag): SolrQuery
publicsetFacetDateEnd(string$value, string$field_override = ?): SolrQuery
publicsetFacetDateGap(string$value, string$field_override = ?): SolrQuery
publicsetFacetDateHardEnd(bool$value, string$field_override = ?): SolrQuery
publicsetFacetDateStart(string$value, string$field_override = ?): SolrQuery
publicsetFacetEnumCacheMinDefaultFrequency(int$frequency, string$field_override = ?): SolrQuery
publicsetFacetLimit(int$limit, string$field_override = ?): SolrQuery
publicsetFacetMethod(string$method, string$field_override = ?): SolrQuery
publicsetFacetMinCount(int$mincount, string$field_override = ?): SolrQuery
publicsetFacetMissing(bool$flag, string$field_override = ?): SolrQuery
publicsetFacetOffset(int$offset, string$field_override = ?): SolrQuery
publicsetFacetPrefix(string$prefix, string$field_override = ?): SolrQuery
publicsetFacetSort(int$facetSort, string$field_override = ?): SolrQuery
publicsetGroup(bool$value): SolrQuery
publicsetGroupCachePercent(int$percent): SolrQuery
publicsetGroupFacet(bool$value): SolrQuery
publicsetGroupFormat(string$value): SolrQuery
publicsetGroupLimit(int$value): SolrQuery
publicsetGroupMain(string$value): SolrQuery
publicsetGroupNGroups(bool$value): SolrQuery
publicsetGroupOffset(int$value): SolrQuery
publicsetGroupTruncate(bool$value): SolrQuery
publicsetHighlight(bool$flag): SolrQuery
publicsetHighlightAlternateField(string$field, string$field_override = ?): SolrQuery
publicsetHighlightFormatter(string$formatter, string$field_override = ?): SolrQuery
publicsetHighlightFragmenter(string$fragmenter, string$field_override = ?): SolrQuery
publicsetHighlightFragsize(int$size, string$field_override = ?): SolrQuery
publicsetHighlightMaxAlternateFieldLength(int$fieldLength, string$field_override = ?): SolrQuery
publicsetHighlightMergeContiguous(bool$flag, string$field_override = ?): SolrQuery
publicsetHighlightRegexMaxAnalyzedChars(int$maxAnalyzedChars): SolrQuery
publicsetHighlightRegexPattern(string$value): SolrQuery
publicsetHighlightRegexSlop(float$factor): SolrQuery
publicsetHighlightSimplePost(string$simplePost, string$field_override = ?): SolrQuery
publicsetHighlightSimplePre(string$simplePre, string$field_override = ?): SolrQuery
publicsetHighlightSnippets(int$value, string$field_override = ?): SolrQuery
publicsetMlt(bool$flag): SolrQuery
publicsetMltBoost(bool$flag): SolrQuery
publicsetMltCount(int$count): SolrQuery
publicsetMltMaxNumTokens(int$value): SolrQuery
publicsetMltMaxWordLength(int$maxWordLength): SolrQuery
publicsetMltMinDocFrequency(int$minDocFrequency): SolrQuery
publicsetMltMinTermFrequency(int$minTermFrequency): SolrQuery
publicsetMltMinWordLength(int$minWordLength): SolrQuery
publicsetOmitHeader(bool$flag): SolrQuery
publicsetQuery(string$query): SolrQuery
publicsetRows(int$rows): SolrQuery
publicsetShowDebugInfo(bool$flag): SolrQuery
publicsetStart(int$start): SolrQuery
publicsetStats(bool$flag): SolrQuery
publicsetTerms(bool$flag): SolrQuery
publicsetTermsField(string$fieldname): SolrQuery
publicsetTermsLimit(int$limit): SolrQuery
publicsetTermsLowerBound(string$lowerBound): SolrQuery
publicsetTermsMaxCount(int$frequency): SolrQuery
publicsetTermsMinCount(int$frequency): SolrQuery
publicsetTermsPrefix(string$prefix): SolrQuery
publicsetTermsReturnRaw(bool$flag): SolrQuery
publicsetTermsSort(int$sortType): SolrQuery
publicsetTermsUpperBound(string$upperBound): SolrQuery
publicsetTimeAllowed(int$timeAllowed): SolrQuery
}

定義済み定数

SolrQuery::ORDER_ASC

Used to specify that the sorting should be in acending order

SolrQuery::ORDER_DESC

Used to specify that the sorting should be in descending order

SolrQuery::FACET_SORT_INDEX

Used to specify that the facet should sort by index

SolrQuery::FACET_SORT_COUNT

Used to specify that the facet should sort by count

SolrQuery::TERMS_SORT_INDEX

Used in the TermsComponent

SolrQuery::TERMS_SORT_COUNT

Used in the TermsComponent

目次