Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Lower scores also output with HANA Fuzzy Search

$
0
0

Hi,

 

I am developing in HANA and trying thiings out with the CONTAINS predicate.

In order to make all things work I defined a full text index on the requested column - this is a NVARCHAR in our secondary database.

 

If I execute the SQL below, I also get results with a score lower than 1.0. If I replace the FUZZY with EXACT, I get exactly the same effect.

 

select

  distinct score() as score,

  ident

from z_estri

where contains( ident,

  'ethylene' ,

  fuzzy( 1.0 , 'textsearch=compare' ) )

order by score desc,

  ident

 

We want the perfect matches as output, but " WHERE IDENT = 'ethylene' " does not work, because some records might contain uppercases and in this case the CONTAINS returns them all with a perfect score.

 

If I use FUZZY( 0.9 ) I also get the lower scores in my result.

 

Can anyone tell me how I can get the correct result.

 

Thanks a lot.

 

Kris


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>