search suggestions select a different index than the one that gives results
Hello Everyone,
We have three indexes with each indexing different properties and they are working perfectly for normal querying. But when i use suggest query
SELECT [rep:suggest()] as suggestion FROM [nt:base] as s WHERE (ISDESCENDANTNODE(s,'/content/fai/us-products')) AND suggest('richard')
It selects another index which doesnt give any results. (It selects faiLiteratureIndex rather than faiManagerIndex).
Is there any way i can rank them?
cost for [/content/fai/oak:index/faiLiteratureIndex] of type (lucene-property) with plan [lucene:faiLiteratureIndex(/content/fai/oak:index/faiLiteratureIndex) *:*] is 2.00
cost for [/content/fai/oak:index/faiManagerIndex] of type (lucene-property) with plan [lucene:faiManagerIndex(/content/fai/oak:index/faiManagerIndex) *:*] is 2.00
cost for [/content/fai/oak:index/faiBaseIndex] of type (lucene-property) with plan [lucene:faiBaseIndex(/content/fai/oak:index/faiBaseIndex) *:*] is 2.00
cost for lucene-property[/content/fai/oak:index/faiLiteratureIndex] is 2.0
Just for info though i have useInSuggest in all the indexes for different properties
Thank you!
~Swetha