From: Jim C. <li...@yg...> - 2003-06-27 04:31:26
|
On Wednesday, June 25, 2003, at 08:14 AM, Jonathan Schlackl wrote: > I have a small issue with slashes in phrases causing htsearch to > return > 0 results - here's the phrase: > "UNAIDS HIV/AIDS Communications Framework" > > Returns 0 results but when I search for: I think that there is a problem with the parser that handles phrase queries. When HIV/AIDS is indexed, the slash is stripped and the second term and hivaids is added to the database (along with the individual components hiv and aids). However the phrase is not being treated in the same manner when provided as a query. For a possible work-around, you might want to take a look at the following two attributes. http://www.htdig.org/attrs.html#valid_punctuation http://www.htdig.org/attrs.html#extra_word_characters If you add '/' to extra_word_characters, the '/' should no longer be stripped during indexing. I think that you will also need to remove the '/' from valid_punctuation in order to get the results you are looking for. Jim |