Hi,

I'm using the search api and when I search using a standard term such
as "the" I get several <search:match> elements per <search:snippet>,
and each <search:match> contains <search:highlight> elements wrapping
the search term, such as:

<search:match path="....">a sample to show
<search:highlight>the</search:highlight> highlights...</search:match>

All good so far, however when the query includes a facet, such as "the
AND foo:bar" then although the results are correct, the search:snippet
only contains 1 search:match, and that just contains the whole text of
the document (up to max-snippet-chars), without any search:highlights.
 So the above becomes:

<search:match path="....">a sample to show  the highlights...(along
with the rest of the text in the document up to
max-snippet-chars)</search:match>

So whenever the query includes a facet, I no longer get any
search:highlight elements in the search:response - is that expected or
am I doing something wrong?

thanks

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to