I'm indexing a set of HTML pages for offline access. Included among the indexed terms are command line flags, which consist of a dash followed by a single letter (e.g., "-f"). For the most part, there are no problems with these. However, I did notice that I wasn't getting the correct "hits" when searching for -b or -v. I looked in the zoom_index.js file, and sure enough, I found something peculiar:
"-v,6,4",
"-b,6,4",
"-b,6,8,14,15,35,15,269,15,271,16,272,15,281,75,282, 15,288,15,289,15,306,16",
"-v,6,4,10,8,81,15,122,20,124,15,133,30,271,4,273,15 ",
For some reason, -b and -v both have two array entries. When I perform a search, only the web pages listed for the first occurence of the same flag in the array are returned. If I transpose the array elements for either -b or -v, I get the longer list of results when performing a search, as expected.
So I'm wondering why this indexing anomaly is occurring, and if there's a possible workaround. It's not difficult for me to fix the problem manually, but the index file is over 400 KB and I haven't checked it thoroughly for other similar issues. Better to avoid the problem altogether.
I'm using Zoom v4.1 Professional, by the way.
Thanks in advance.
"-v,6,4",
"-b,6,4",
"-b,6,8,14,15,35,15,269,15,271,16,272,15,281,75,282, 15,288,15,289,15,306,16",
"-v,6,4,10,8,81,15,122,20,124,15,133,30,271,4,273,15 ",
For some reason, -b and -v both have two array entries. When I perform a search, only the web pages listed for the first occurence of the same flag in the array are returned. If I transpose the array elements for either -b or -v, I get the longer list of results when performing a search, as expected.
So I'm wondering why this indexing anomaly is occurring, and if there's a possible workaround. It's not difficult for me to fix the problem manually, but the index file is over 400 KB and I haven't checked it thoroughly for other similar issues. Better to avoid the problem altogether.
I'm using Zoom v4.1 Professional, by the way.
Thanks in advance.
Comment