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

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

@Smaranika21

Description

@Smaranika21

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
" .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions