Skip to content
codefriar edited this page Oct 5, 2023 · 2 revisions

APIVERSION: 58

STATUS: ACTIVE

MIT License Copyright (c) 2020 Rafał Kopaczewski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Constructors

private SOSL(String queryString)

TESTVISIBLE

Fields

private queryStringString

TESTVISIBLE


Methods

public String getQueryString()

public List query()

public Search find()

public override String toString()


Classes

Builder

Constructors

public Builder(String searchPhrase)
public Builder(Query searchCondition)

Fields

private dataCategorySpecsList<DataCategorySpec>

TESTVISIBLE

private divisionString

TESTVISIBLE

private networkIdsSet<String>

TESTVISIBLE

private numberOfRowsInteger

TESTVISIBLE

private pricebookIdString

TESTVISIBLE

private returningFieldSpecsList<Query.ReturningFieldSpec>

TESTVISIBLE

private searchConditionQuery

TESTVISIBLE

private searchGroupQuery

TESTVISIBLE

private snippetString

TESTVISIBLE

private snippetTargetLengthInteger

TESTVISIBLE

private spellCorrectionString

TESTVISIBLE

private statementUpdateSet<String>

TESTVISIBLE

private withHighlightBoolean

TESTVISIBLE


Methods

public Builder withSearchGroup(Query searchGroup)
public Builder addReturningFieldSpec(Query returningFieldSpec)
public Builder withDivision(String division)
public Builder withDataCategoryAt(String groupName, String category)
public Builder withDataCategoryAbove(String groupName, String category)
public Builder withDataCategoryBelow(String groupName, String category)
public Builder withDataCategoryAboveOrBelow(String groupName, String category)
public Builder withHighlight()
public Builder withNetworkId(String networkId)
public Builder withNetworkIds(List<String> networkIds)
public Builder withNetworkIds(Set<String> networkIds)
public Builder withPricebookId(String pricebookId)
public Builder withSnippet(Integer snippetTargetLength)
public Builder withSpellCorrection(Boolean isSpellCorrectionEnabled)
public Builder setScopeLimit(Integer numberOfRows)
public Builder setUpdateTracking()
public Builder setUpdateViewStat()
public SOSL build()
private void addFindStatement(List<String> queryStatements)
private void addSearchGroupStatement(List<String> queryStatements)
private void addReturningStatement(List<String> queryStatements)
private void addDivisionStatement(List<String> queryStatements)
private void addDataCategoryStatement(List<String> queryStatements)
private void addHighlightStatement(List<String> queryStatements)
private void addNetworkStatement(List<String> queryStatements)
private void addPricebookIdStatement(List<String> queryStatements)
private void addSnippetStatement(List<String> queryStatements)
private void addSpellCorrectionStatement(List<String> queryStatements)
private void addLimitStatement(List<String> queryStatements)
private void addUpdateStatement(List<String> queryStatements)
public override String toString()

DataCategorySpec

TESTVISIBLE

Constructors

private DataCategorySpec(String groupName, String operator, String category)

TESTVISIBLE

Fields

private categoryString

TESTVISIBLE

private groupNameString

TESTVISIBLE

private operatorString

TESTVISIBLE


Methods

public String toDataCategorySpecString()
public override String toString()


Clone this wiki locally