[htdig3-dev] word insertion bug


loic@ceic.com
Fri, 10 Sep 1999 17:00:52 +0200 (MEST)


       Hi,

       I got the bug.

       We have in bar.html:

       <a href="foo.html">a b c</a> d e f

       a b c is inserted in LINK_TEXT for docid(foo.html) and
       d e f are inserted with docid(foo.html) instead of docid(bar.html)

       I'd suggest two things:

       1) Hack: save docid before setting it in
          void DocumentRef::AddDescription(char *d, WordList &words)
          and restore when leaving it.
          I did that and it works.

       2) Since it's very likely that we will want to have various word
          insertions context active at a given time and some of them
          re-entrant split WordList in two classes. One is the central
          point and has access to the database. The other is lightweight
          and only contains the context of insertion/retrieval of words.

       Thanks for your feedback,

       Cheers,

-- 
		Loic Dachary

ECILA 100 av. du Gal Leclerc 93500 Pantin - France Tel: 33 1 56 96 09 80, Fax: 33 1 56 96 09 61 e-mail: Loic@Dachary.org URL: http://www.senga.org/

------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev@htdig.org containing the single word "unsubscribe" in the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Fri Sep 10 1999 - 07:52:04 PDT