#125 … as separator in snippet field doesn't work

open
None
5
2012-09-13
2012-01-26
DR12
No

Here is my error again. I've just tried " … " as separator. The file request.xml contains

[code]... separator=" … " ...[code] (really double "amp;")

Now stopped OpenSearchServer and restartet. The next query result contains

[code]<snippet name="content" highlighted="yes">... &hellip; ...</snippet>[/code]

This is wrong. I expect "…" instead of "&hellip;".

Discussion

  • The double encoding in the request.xml file is normal. That's the way we want it to be stored in the configuration file.
    I made some test with 1.2.4 r1315 and everything works well for me.

    The content of request XML is:

    <field name="title" tag="b" maxDocChar="2147483647" separator="&amp;amp;#8230;" maxSnippetSize="200" fragmenterClass="NoFragmenter"/>
    <field name="content" tag="b" maxDocChar="2147483647" separator="&amp;amp;hellip;" maxSnippetSize="200" fragmenterClass="SentenceFragmenter"/>

    If I edit the separator using the user interface, the separator is also well stored.
    And in the XML result everything is well encoded. Even after restarting OpenSearchServer.

    <response>
    <status>0</status> <query>*:*^10.0 *:*^10.0 *:*^5.0 url:*:*^5.0 *:*^5.0 *:*^5.0 *:* *:*</query>
    <result name="response" numFound="1" collapsedDocCount="0" start="0" rows="10" maxScore="1.862972" time="3"> <doc score="1.862972" pos="0"> <field name="url">http://www.open-search-server.com/</field> <snippet name="title">OpenSearchServer | Enterprise Search made yours </snippet> <snippet name="content">Register… Forgot your password ?… Home… OpenSearchServer… Services… Community… Partners… Company… Account… ddblock-News item slideshow… One Feature… Scheduler module… In an OpenSearchServer application… </snippet> </doc> </result> </response>