PROBLEM FOUND.PROBABLY CORRUPT INDEX.
AFTER RE-CREATING IT IS WAS WORKING.
I have the following problem:
I created a searchform on which a query (by using the searchview url) on different fields can be entered.
If I use this searchform in a local copy of the actual database, the search works fine.
If I use this searchform on the server (exact same documents), no results are found.
Both (local and server) are simular full text indexed.
I use this to make the search url:
query := “”;
zoek := @If(exact = “Ja”; zoekstring; “" + zoekstring + "”);
@If( element = “Afdeling”; @Set( “query”; “[Department]+CONTAINS+” + zoek ); NULL );
@If( element = “Achternaam”; @Set( “query”; “[LastName]+CONTAINS+” + zoek ); NULL);
@If( element = “Voornaam”; @Set( “query”; “[FirstName]+CONTAINS+” + zoek ); NULL);
@If( element = “Vestiging”; @Set( “query”; “[Company]+CONTAINS+” + zoek ); NULL);
@If( element = “Functie”; @Set( “query”; “[Function]+CONTAINS+” + zoek ); NULL);
@If( element = “Adres vestiging”; @Set( “query”; “[Name]+CONTAINS+” + zoek ); NULL);
@If( maxDocs != “All”; @Set( “query”; query + “&SearchMax=” + maxDocs ); NULL );
@Set( “query”; query + “&SearchOrder=4” );
viewname := @If(element = “Adres vestiging”; “OrgCompany”; “PeopleByName”);
dbpath := @ReplaceSubstring( @Subset( @DbName; -1 ); “\”; “/” );
dbpath + “/” + viewname + “?SearchView&Query=” + query
The server’s HTTP task is not active.
So, the problem is: it works fine on a local database (copy of the server database) but it does NOT work on the server itself.
No errors are shown, just an empty view.
I don’t know if it is of importance, but I start the search from an intranet with frames.
By pressing a button (in another database), the view is shown with documents…pressing a search button shows the searchform…then after entering the query another button starts the searchview url. No results!
The local database is not opened in frames, but directly to the view.
Any ideas?
Thanks!!