[MarkLogic Dev General] Search API snippet

Shannon Shiflett at virginia.edu
Wed Jun 9 10:39:03 PDT 2010


Yes, that is true -- I reported it back in April. It is bug report #10005: "search:snippet does not return snippets in the preferred elements". I was told the engineering team will review the case and address it in a future maintenance release.

On Jun 9, 2010, at 12:14 PM, Pradeep Maddireddy wrote:

> Hi Shanon
> 
>  That mapping helps only if the search term is found in multiple
> elements, it will return all those elements, we can also control the
> element to be preferred.
> 
> But in my case, if the search term is only found in title and no where
> else, search API only returns the title element as snippet which
> doesn't have enough text to be displayed on search results page.
> 
> Thanks
> Pradeep Maddireddy
> 
> On 6/9/10, Shannon <Shiflett at virginia.edu> wrote:
>> 
>> Hi Pradeep,
>> 
>> Check out section 2.2.6.1 of Search Developer's Guide: max-snippet-chars and
>> preferred-elements child elements of the transform-results options node
>> should address those requirements.
>> 
>> Best,
>> Shannon
>> 
>> On Jun 9, 2010, at 10:48 AM, Pradeep Maddireddy wrote:
>> 
>>> Hi..!
>>> 
>>> I always want atleast 300 to 400 char of snippet to be returned by
>>> the search API.
>>> Is there any setting that would help me get  300 to 400 char of snippet.
>>> 
>>> Most of the times when the hit is aginst a title or author element
>>> only that particular element is being returned as snippet, this will
>>> not be enough text to be displayed in the search results screen.
>>> 
>>> 
>>> Thanks
>>> Pradeep Maddireddy
>>> _______________________________________________
>>> General mailing list
>>> General at developer.marklogic.com
>>> http://developer.marklogic.com/mailman/listinfo/general
>> 
>> _______________________________________________
>> General mailing list
>> General at developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
>> 
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20100609/22797cf6/attachment.html 


More information about the General mailing list