Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Custom Algorithm Using cts:json-property-value-query #332

Open
Smaranika21 opened this issue Sep 10, 2019 · 3 comments
Open

Custom Algorithm Using cts:json-property-value-query #332

Smaranika21 opened this issue Sep 10, 2019 · 3 comments

Comments

@Smaranika21
Copy link

Hi @ryanjdew,
I have created one custom algorithm that returns cts query in form of cts:json-property-value-query. Using this algorithm, I am getting the item as matched item but the score I have mentioned is not getting added to the total match score.

cts query I am returning-
cts:json-property-value-query($field, $value, ("case-insensitive","wildcarded"),$expand-xml/@weight)

I am attaching the custom algo I have written.

I am matching two documents, where in one the value of $field is "hello world how are you" and in another it is "hello1world1how1are

In match result , I am just getting the match items but the score is not being added.

Any help would be appreciated.

CustomMatchAlgo.txt
" .

@Smaranika21
Copy link
Author

I have checked with cts:json-property-word-query as well with all the options available but still its not adding to the final score.
Is there anything else that can be done?

@ryanjdew
Copy link
Contributor

Hi @Smaranika21

I will attempt to reproduce the issue. In the meantime, can you provide some more information?

Are you using Data Hub 5 or this community library? Can you provide the version of Data Hub or the Smart Mastering library you are using?

@Smaranika21
Copy link
Author

Hi @ryanjdew , thanks for your time, very much appreciated. I am using data hub version 4.3.1.

I am using this function from matcher.xqy to get match results -
"find-document-matches-by-options-name"
Also tried this - "matcher.findDocumentMatchesByOptions".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants