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



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to