Ignore:
Timestamp:
1999-02-22T11:31:35+13:00 (25 years ago)
Author:
rjmcnab
Message:

Removed locateinfo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/mgsearch.cpp

    r138 r163  
    1212/*
    1313   $Log$
     14   Revision 1.5  1999/02/21 22:31:35  rjmcnab
     15
     16   Removed locateinfo.
     17
    1418   Revision 1.4  1999/02/03 01:13:27  sjboddie
    1519
     
    3438#include "gsdlconf.h"
    3539#include "mgsearch.h"
     40#include "fileutil.h"
    3641
    3742#include <string.h>
     
    6267
    6368#include "mgq.h"
    64 #include "locateinfo.h"
     69// #include "locateinfo.h"
    6570#include "gsdlunicode.h"
    6671#include "unitool.h"
     
    135140//}
    136141
    137 void getrealindexparts (const text_tarray &indexmap, const text_tarray &subcollectionmap,
     142void getrealindexparts (const text_tarray &/*indexmap*/, const text_tarray &/*subcollectionmap*/,
    138143            const text_tarray &languagemap, const text_t &realindex,
    139144            text_t &index, text_t &subcollection, text_t &language) {
     
    163168
    164169
    165 void getdirindexparts (const text_tarray &indexmap, const text_tarray &subcollectionmap,
     170void getdirindexparts (const text_tarray &/*indexmap*/, const text_tarray &/*subcollectionmap*/,
    166171               const text_tarray &languagemap, const text_t &dirindex,
    167172               text_t &index, text_t &subcollection, text_t &language) {
     
    348353}
    349354
    350 text_t getdoclevelindex (const text_tarray &indexmap) {
     355text_t getdoclevelindex (const text_tarray &/*indexmap*/) {
    351356  //text_tarray::const_iterator here = indexmap.begin();
    352357  //text_tarray::const_iterator end = indexmap.end();
     
    446451
    447452
     453static text_t getindexsuffix (const text_t &collection,
     454                  const text_t &index) {
     455  text_t indexsuffix = "index";
     456  indexsuffix = filename_cat (indexsuffix, index);
     457  indexsuffix = filename_cat (indexsuffix, collection);
     458  return indexsuffix;
     459}
     460
     461
     462
    448463
    449464////////////////////
     
    505520                     queryparams.search_index)).getcstr();
    506521  assert (idxsuffix != NULL);
    507   char *txtsuffix = (gettextsuffix (queryparams.collection)).getcstr();
     522  char *txtsuffix = (getindexsuffix (queryparams.collection, "text")).getcstr();
    508523  assert (txtsuffix != NULL);
    509524
     
    683698                     defaultindex)).getcstr();
    684699      assert (idxsuffix != NULL);
    685       char *txtsuffix = (gettextsuffix (collection)).getcstr();
     700      char *txtsuffix = (getindexsuffix (collection, "text")).getcstr();
    686701      assert (txtsuffix != NULL);
    687702
Note: See TracChangeset for help on using the changeset viewer.