I use cfsearch to search the indexed word documents.
My search returns any keyword found in the document except "names" in some cases.
For example if there is a name called "Jessica Bicks" in the document, if I search by Bicks or Jessica Bicks it returns the document. But if I just search by Jessica it returns 0.
Also if there is a name called "L. Bailey" in the document, searching by Bailey or L. Bailey returns 0 records.
But if I search a name "G. Nickel" by Nickel or G. Nickel it returns that document.
can someone please help?
The code is shown below:
Using verity clean function to replace some characters.
My search code is:
<cfsearch name="GetResults"
collection="#collectionName#"
type="natural"
criteria="<WILDCARD>*#LCase(verityClean(FORM.keywords))#*"
ContextPassages="1"
ContextBytes="500"
>
My search returns any keyword found in the document except "names" in some cases.
For example if there is a name called "Jessica Bicks" in the document, if I search by Bicks or Jessica Bicks it returns the document. But if I just search by Jessica it returns 0.
Also if there is a name called "L. Bailey" in the document, searching by Bailey or L. Bailey returns 0 records.
But if I search a name "G. Nickel" by Nickel or G. Nickel it returns that document.
can someone please help?
The code is shown below:
Using verity clean function to replace some characters.
My search code is:
<cfsearch name="GetResults"
collection="#collectionName#"
type="natural"
criteria="<WILDCARD>*#LCase(verityClean(FORM.keywords))#*"
ContextPassages="1"
ContextBytes="500"
>