cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect results with SearchParameters

maximilien
Champ in-the-making
Champ in-the-making
Hello,

I'm currently creating a specific search script in java. I use SearchParameters to create and execute my Lucene query.
But it seems to have a strange behaiour with some word like "paris" or "carie" (It's in french).
With theses word (looking inside TEXT or title), it also returns results with "par" or "car".
So, i would like to know why it does that only with some words and how to prevent that.
2 REPLIES 2

patil
Champ on-the-rise
Champ on-the-rise
There are 2 possibilities for this.
1. You might be using * in your query i,e TEXT:"searchterm*". If this is the case remove *.
2. The way the field is been indexed. In your content model file if you have mentioned as tokenised = true then make it false.

maximilien
Champ in-the-making
Champ in-the-making
Thanks for the answer.

I already found the issue with *. I simply remove " and that works as expected (eg. TEXT:searchterms*)
i will check for tokens.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.