Searching for a term which includes a forward slash

hqweb
Posts: 22
Joined: Wed Sep 03, 2003 3:59 am

Searching for a term which includes a forward slash

Post by hqweb »

Hello,
Currently we have vacancies on our site and they have always have a reference number associated with them - e.g. gs/vn/088
If we do a search using gs/vn/088 we got hundred of results and the vacancy corresponding to gs/vn/088 could appear anywhere (i.e. not at the top).
If we research using gs +vn +088 we get the result we want appearing at the top.
Is there anyway to get webinator to treat the forward slash/ as an ordinary character and not treat it like a not treat it like a Rex Expression?
We have tried searching for "gs/vn/088" but that gives us the same result as the first search.
Thanks.
Niamh
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Searching for a term which includes a forward slash

Post by Kai »

The forward slash only indicates a REX expression when it is the first character of a set. In the middle of a term as in your example, it is considered an ordinary character.

However, it is not normally indexed (only alphanumerics are), so only the prefix `gs' can be found by the index, and post-processing (which takes time and may not be enabled; see HTML source for comments to that effect) is needed to fully resolve `gs/vn/088'.

Add forward slash to the Word Definitions by adding a second line like this:

>>\alnum=[\alnum/]{1,99}

and hit Update; this will re-index the data with the new index expression(s).
hqweb
Posts: 22
Joined: Wed Sep 03, 2003 3:59 am

Searching for a term which includes a forward slash

Post by hqweb »

Thanks for this. Is there any disadvantage to indexing the forward slash (e.g. longer walk time?)

Niamh
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Searching for a term which includes a forward slash

Post by Kai »

Index create time (after the walk) will increase, but not much. There's an increase in the size of the dictionary and .dat files for the index, since more words are being indexed. The larger index files might therefore be accessed slower at search time due to increased disk cache requirements. This is dependent on actual index size, RAM, OS parameters, etc. But it shouldn't be too noticeable for this case.
hqweb
Posts: 22
Joined: Wed Sep 03, 2003 3:59 am

Searching for a term which includes a forward slash

Post by hqweb »

Hi,
I've tried addingthe forward slash to the word definitions. It looks like this
[\alnum\x80-\xff]{1,70}
[\alnum\x80-\xff.]{1,70}>>[.&']=[\alnum\x80-\xff.]{1,70}
>>\alnum=[\alnum/]{1,99}

but now I don't get any results on searching for gs/vn/023

Any ideas?
Thanks.
Niamh
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Searching for a term which includes a forward slash

Post by mark »

How exactly does that appear on the page? Can you give us the url of an example page with that on it?

View the source of the search results and see if there are any error/warning messages within html comments.
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Searching for a term which includes a forward slash

Post by Kai »

Does the Walk Status page say "Reindexed" at the time you changed the Word Definitions? Or did you do a re-walk?
hqweb
Posts: 22
Joined: Wed Sep 03, 2003 3:59 am

Searching for a term which includes a forward slash

Post by hqweb »

Hi,
I did a re-walk after changing the definitions
I've viewed the source - there are no error messages. Here is an example page/code.
<html>

<head>
<link rel="stylesheet" type="text/css" href="../../../../styles/hcr-net.txt">
<title>Internal Vacancy Notice - GS Posts</title>
</head>

<body>

<h1 class="TITLE">Internal Vacancy Notice - GS posts</h1>

<table height="67">
<tr>
<td width="60" class="MEMOHEAD" height="13">To:</td>
<td class="MEMOHEAD" height="13">All staff members in the General Service category at
Headquarters <br>
and in the Field</td>
</tr>
<tr>
<td width="60" class="MEMOHEAD" height="13">From:</td>
<td class="MEMOHEAD" height="13">Vacancy Management Unit</td>
</tr>
<tr>
<td width="60" class="MEMOHEAD" height="12">Subject:</td>
<td class="MEMOHEAD" height="12">Internal Vacancy Notice - GS posts</td>
</tr>
</table>

<h1>GS/VN/00/023</h1>

<dir>
<table>
<tr>
<th>Post</th>
<th>Contact person for information </th>
<th>Job <br>
Description</th>
</tr>
<tr>
<td><i><b>xxxx<br>
</b>xxx xxxx xxxxxxx<br>
xx xx xx,<br>
<b>Post No. 00000</b></i></td>
<td><i><b>Ms. xxx<br>
</b>xxx xxx<br>
xxx xxx<br>
xxx xxx<br>
xxx xxx<br>
<br>
<b>xx xx<br>
</b>xx,<br>
xxx xxx<br>
xxx xxx<br>
Ext. xxx</i></td>
<td>[<a href="xx.doc">Word</a>]</td>
</tr>
</table>
</dir>

</body>
</html>

Thanks.
Niamh
hqweb
Posts: 22
Joined: Wed Sep 03, 2003 3:59 am

Searching for a term which includes a forward slash

Post by hqweb »

Thanks John. I've been looking at it for so long I had somehow managed to ignore the 00 in there! It works now.

Thanks for you help.
Niamh
sduggan
Posts: 84
Joined: Tue Mar 20, 2001 9:16 am

Searching for a term which includes a forward slash

Post by sduggan »

I'm having trouble with forward slash. When I search for a term with a forward slash I get a message:
WARNING: Term `xxx/yyyy only partially matches index expression(s)

This is what I have in the Word Definition box:
=================================
[\alnum\x80-\xff]{1,70}
[\alnum\x80-\xff.]{1,70}>>[.&']=[\alnum\x80-\xff.]1,70}
>>\alnum=[\alnum/]{1,99}
================================
I'm using Webinator 5.0.6

Thanks, Shawn
Post Reply