source: main/tags/2.80/indexers/mg/src/text/bool_optimiser.h@ 24541

Last change on this file since 24541 was 3745, checked in by mdewsnip, 21 years ago

Addition of MG package for search and retrieval

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/**************************************************************************
2 *
3 * bool_optimiser -- optimise boolean parse tree
4 * Copyright (C) 1994 Tim Shimmin
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * $Id: bool_optimiser.h 3745 2003-02-20 21:20:24Z mdewsnip $
21 *
22 **************************************************************************/
23
24/*
25 $Log$
26 Revision 1.1 2003/02/20 21:18:23 mdewsnip
27 Addition of MG package for search and retrieval
28
29 Revision 1.1 1999/08/10 21:17:42 sjboddie
30 renamed mg-1.3d directory mg
31
32 Revision 1.1 1998/11/17 09:34:23 rjmcnab
33 *** empty log message ***
34
35 * Revision 1.2 1995/03/14 05:15:21 tes
36 * Updated the boolean query optimiser to do different types of optimisation.
37 * A query environment variable "optimise_type" specifies which one is to be
38 * used. Type 1 is the new one which is faster than 2.
39 *
40 * Revision 1.1 1994/10/20 03:56:32 tes
41 * I have rewritten the boolean query optimiser and abstracted out the
42 * components of the boolean query.
43 *
44 * Revision 1.2 1994/10/18 06:11:03 tes
45 * The boolean optimiser seems to be modifying the parse tree
46 * like it is supposed to.
47 * Paragraph ranking now works without any text files if required to.
48 *
49 * Revision 1.1 1994/10/12 01:15:29 tes
50 * Found bugs in the existing boolean query optimiser.
51 * So decided to rewrite it.
52 * I accidentally deleted query.bool.y, but I have replaced it
53 * with bool_parser.y (which I have forgotten to add here ! ;-(
54 *
55 */
56
57#ifndef BOOL_OPTIMISER_H
58#define BOOL_OPTIMISER_H
59
60#include "bool_tree.h"
61#include "term_lists.h"
62
63void OptimiseBoolTree (bool_tree_node * parse_tree, TermList * term_list, int type);
64
65#endif
Note: See TracBrowser for help on using the repository browser.