Hi,
For search:suggest I want to search titles and subtitles elements and
return their complete contents as suggestions (not just a matching word):
<default-suggestion-source>
<word>
<field name="suggest-titles"/>
</word>
</default-suggestion-source>
With the above I get results from both elements, but only matching words
(not the complete titles).
The other approach using the recommended <range> element:
<default-suggestion-source>
<range type="xs:string">
<element ns="" name="title"/><!-- impossible to have more than one
element -->
</range>
</default-suggestion-source>
returns complete titles, but I can't apparently have more than one element
(title and subtitle). The range index correctly contains both elements.
----
Still for search:suggest: another, related question: Let's say I wanted to
search both titles and subtitles, and if a search term occurs in either of
them, return them both inside a wrapper element, in order to display them
in a rich-text drop-down menu underneath the type-ahead search box. Is that
still possible with search:suggest, or do we have to use search:search, and
if so will performance become an issue?
The database itself is rather small (about 40K documents).
Thanks,
Jakob.
--
cheers,
Jakob.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general