Salience 6 - Query Topic options

<<Sentiment options | Back to Options index | Collection 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 = <integer value>;
lxaSetSalienceOption(pSession,&oOption);
.NET SalienceEngine.TopicStemming = boolean value
Java Salience.Options.QueryTopics.setTopicStemming(integer value)
Python salience.setOption_QueryTopicStemming(session,integer value, configuration ID)

Back to top

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 = <string value>;
lxaSetSalienceOption(pSession,&oOption);
.NET SalienceEngine.TopicList = string value
Java Salience.Options.QueryTopics.setQueryTopicList(string value)
Python salience.setOption_QueryTopicList(session,string value, configuration ID)

Back to top

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-MAX INT
Default value 10240
C API
SalienceOption oOption;
oOption.nOption = SALIENCEOPTION_QUERYMAXLENGTH;
oOption.nValue = <integer value>;
lxaSetSalienceOption(pSession,&oOption);
.NET SalienceEngine.MaxTopicLength = integer value
Java Salience.Options.QueryTopics.setMaxQueryLength(integer value)
Python salience.setOption_MaxQueryLength(session,integer value, configuration ID)

Back to top

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 = <integer value>;
lxaSetSalienceOption(pSession,&oOption);
.NET SalienceEngine.TopicIgnoreAccents = boolean value
Java Salience.Options.QueryTopics.setIgnoreAccents(boolean value)
Python salience.setOption_TopicIgnoreAccents(session,boolean value, configuration ID)

Back to top

Query DefaultAccepts 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 = <integer value>;
lxaSetSalienceOption(pSession,&oOption);
.NET SalienceEngine.TopicDefaultAcceptsNegated= boolean value
Java Salience.Options.QueryTopics.setDefaultAcceptsNegated(integer value)
Python salience.setOption_QueryDefaultAcceptsNegated(session,integer value, configuration ID)

Back to top