Linear Search error message

davidtg
Posts: 47
Joined: Wed Aug 08, 2001 4:07 pm

Linear Search error message

Post by davidtg »

Hi,

I'm getting something I've not seen before:
"115 /search:1611 Query 'xxxx' would require a linear search".

The search script is customized with a radio buttons to allow users to switch databases to search either the profile's db or a main db that indexes several sites. The error shows when switching to the main db.

Oddly we use the same script with several different profiles and only one of the profiles gives the error when switching to the main db. Also all functioned fine and without error until today.

Any thoughts on this issue? Thanks, David
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Linear Search error message

Post by John »

That means that the index on the table is either missing, is not on the right fields, or the search term is not indexable.
John Turnbull
Thunderstone Software
davidtg
Posts: 47
Joined: Wed Aug 08, 2001 4:07 pm

Linear Search error message

Post by davidtg »

I'm sure your correct but there is something else going on because I can search the same term on the database without error when Webinator uses a different profile.

Maybe my code to switch databases which is inserted after the standard code gets the profile's info is not so good though it had appeared to work fine until now:

<A Name=init>
....snip....
<IF $depts eq "all">
<$swpr = "sphcm"> <!-- switch to sphcm profile's database -->
<sql max=1 "select String db_sphcm from options where Profile=$swpr and Name='SS_db'"></sql> <!-- get path to live database -->
<$dbdir = $db_sphcm>
</IF>
<DB = $dbdir><!-- Profile set the database to search -->
...snip....

All our profiles use the same above code and all but one seems to switch and search without error on the switch. This error has got me quite stumped. Maybe when the refresh walks happen tonight it will magically go away. David
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Linear Search error message

Post by John »

Each profile has its own database and index, so it could be that the one profile is missing an index. You might try running

texis profile=ProfileName dowalk/reindex.txt

to make sure it is indexed. Are there any other messages immediately before or after the linear search message?
John Turnbull
Thunderstone Software
davidtg
Posts: 47
Joined: Wed Aug 08, 2001 4:07 pm

Linear Search error message

Post by davidtg »

Let me try to give a bit more info - I've customized our setup a bit in that we've got 6 profiles - 5 departments and 1 main. The 6 profiles search their own databases without error. The main profile walks a superset of sites relative to the 5 other profiles such that I give the option to search their own database or the larger one availabe in the main profile.

We use separate profiles because each department wants their own look and feel search pages. The vortex search script is the same for each profile - only top/bottom html within profile is different.

I'm not seeing any other errors. Why the switch is only affecting one of the profiles is very odd - the search script is the same for all - seems that all should have the same error. Here are two of the links to our department search pages, the top one has the error when you switch to the main database.

http://apps.sphcm.washington.edu/texis/ ... pr=envhlth
http://apps.sphcm.washington.edu/texis/ ... rch?pr=epi
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Linear Search error message

Post by John »

The two things I would suggest would be to print the database before the search actually happens, e.g. in the search function just before the SQL, and after all the init:

<vxinfo db>
<fmt "<!-- %s -->" $ret>

so it will print in a comment and not affect the output. If they are the same at that point then you could open a tech support ticket and attach the two scripts and we can take a look if anything else looks out of place.
John Turnbull
Thunderstone Software
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Linear Search error message

Post by John »

Another option would be instead of that code to have the radiobutton be called pr, which would set the desired profile automatically.
John Turnbull
Thunderstone Software
davidtg
Posts: 47
Joined: Wed Aug 08, 2001 4:07 pm

Linear Search error message

Post by davidtg »

Still stuggling with this one.

I don't want to change the profile=pr (look and feel) but allow the profile to search against another profiles database.

This has been working for all but one of the profiles - which is odd - since all the profiles use the same script file.

I'll work on it some more but may go ahead and start a ticket on this one.

Thanks, David
davidtg
Posts: 47
Joined: Wed Aug 08, 2001 4:07 pm

Linear Search error message

Post by davidtg »

I've got the error fixed but perhaps only temporarily -

I cloned the problem profile and was able to recreate the error so something in the actual profile seems to be causing the linear search error.

I then cloned a new profile from one of our other ones without the linear query error - duplicated the settings from the problem profile - but no error now.

It be nice to know what possible setting in the profile could create the linear query error when quering against a different DB.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Linear Search error message

Post by John »

The main ones would be Word Definition or Index Fields.
John Turnbull
Thunderstone Software
Post Reply