Salience

The Salience Developer Hub

Welcome to the Salience developer hub. You'll find comprehensive guides and documentation to help you start working with Salience as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Query Topic Options

Query Topic Stemming

Specifies if topic queries and content should be stemmed.

Min/Max range

0 or 1

Default value

1

C API

SalienceOption oOption;
oOption.nOption = SALIENCEOPTION_QUERYTOPICSTEMMING;
oOption.nValue = ;
lxaSetSalienceOption(pSession,&oOption);

.NET

SalienceEngine.TopicStemming = boolean value

Java

Salience.Options.QueryTopics.setTopicStemming(integer value)

Python

salience.setOption_QueryTopicStemming(session,integer value, configuration ID)

Query Topic List

Sets path to a file containing list of topic queries.

Min/Max range

N/A

Default value

None

C API

SalienceOption oOption;
oOption.nOption = SALIENCEOPTION_QUERYTOPICLIST;
oOption.acValue = ;
lxaSetSalienceOption(pSession,&oOption);

.NET

SalienceEngine.TopicList = string value

Java

Salience.Options.QueryTopics.setQueryTopicList(string value)

Python

salience.setOption_QueryTopicList(session,string value, configuration ID)

Max Query Length

Sets the maximum length (in bytes) for a query topic definition. Note, setting this value to 0 signifies no limit to query length, use with caution.

Min/Max range

0 to MAX-INT

Default value

10240

C API

SalienceOption oOption;
oOption.nOption = SALIENCEOPTION_QUERYMAXLENGTH;
oOption.nValue = ;
lxaSetSalienceOption(pSession,&oOption);

.NET

SalienceEngine.MaxTopicLength = integer value

Java

Salience.Options.QueryTopics.setMaxQueryLength(integer value)

Python

salience.setOption_MaxQueryLength(session,integer value, configuration ID)

Query Topic Ignore Accents

When enabled, content with diacritics (á) matches queries without them.

Min/Max range

0 or 1

Default value

1

C API

SalienceOption oOption;
oOption.nOption = SALIENCEOPTION_QUERYTOPICIGNOREACCENTS;
oOption.nValue = ;
lxaSetSalienceOption(pSession,&oOption);

.NET

SalienceEngine.TopicIgnoreAccents = boolean value

Java

Salience.Options.QueryTopics.setIgnoreAccents(boolean value)

Python

salience.setOption_TopicIgnoreAccents(session,integer value, configuration ID)

Query Default Accepts Negated

If a token isn't prefixed with a -, should it still accept negated forms of the term in a document? Should 'dog' match 'no dogs allowed?'

Min/Max range

0 or 1

Default value

1

C API

SalienceOption oOption;
oOption.nOption = SALIENCEOPTION_QUERYDEFAULTACCEPTSNEGATED;
oOption.nValue = ;
lxaSetSalienceOption(pSession,&oOption);

.NET

SalienceEngine.TopicDefaultAcceptsNegated= boolean value

Java

Salience.Options.QueryTopics.setDefaultAcceptsNegated(integer value)

Python

salience.setOption_QueryDefaultAcceptsNegated(session,integer value, configuration ID)

Updated 7 months ago

Query Topic Options


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.