Hi,
I have two questions about search:suggest.
1. I've configured my options to include a constraint that has a space
in its name. When I pass the first character of the constraint name to
search:suggest it returns the constraint followed by the colon, but when
I submit the value returned again with the first character of a
constraint value, I get an empty sequence.
e.g., constraint name is "my constraint" and has values first, second
and third and has a range index on the values.
search:suggest("m", $options) => my constraint:
search:suggest("my constraint:f", $options) => ()
If I change the constraint name to "my_constraint" in my options
search:suggest("my_constraint:f", $options) => first
Is there a way to escape the space in the constraint name when passing
it to search:suggest or is my only option to rename the constraint to
eliminate the space?
2. The docs state that using a word lexicon for the default suggestion
source on a large database will not perform as well as using a range.
I've tried both and the word lexicon returns single words within
elements, but using a range index returns full sentences beginning with
words that match the characters passed. If I prepend a "*" I get full
sentences containing the characters passed. Is there a way to get back
just the matching words not the full sentence>
Thanks.
Bob
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general