1 | Queryer is a standalone program enabling search and retrieval of documents
|
---|
2 | in an mgpp collection. Even when using greenstone, it is useful for testing
|
---|
3 | your collections.
|
---|
4 |
|
---|
5 | Queryer can be run like
|
---|
6 |
|
---|
7 | Queryer -f <index files> -t <text files>
|
---|
8 |
|
---|
9 | index and text files is the path to these files down to the collection name.
|
---|
10 | eg
|
---|
11 | if your text files are demo/index/text/demo.t, demo/index/text/demo.ti etc,
|
---|
12 | then the text path is demo/index/text/demo
|
---|
13 | similary for the index files.
|
---|
14 |
|
---|
15 | Commands available in the Queryer are:
|
---|
16 |
|
---|
17 | .q quit
|
---|
18 | .h print the help message
|
---|
19 | .i change the search level (enter the new level at the prompt)
|
---|
20 | .l change the result level ( "" "" )
|
---|
21 | .b full text browse (enter a word or fragment at the prompt)
|
---|
22 | .r0/.r1 ranking off/on
|
---|
23 | .t0/.t1 query type some/all
|
---|
24 | .c0/.c1 casefolding off/on
|
---|
25 | .s0/.s1 stemming off/on
|
---|
26 | .o0/.o1 short output off/on
|
---|
27 |
|
---|
28 | .p print a document (enter the docnum at the prompt)
|
---|
29 | otherwise just enter a query
|
---|
30 |
|
---|
31 |
|
---|
32 | The current query syntax involves the following:
|
---|
33 |
|
---|
34 | boolean operators: & AND | OR ! NOT, with () for precedence
|
---|
35 |
|
---|
36 | term modifiers: #icus /x - this is stemming, casefolding and weighting like
|
---|
37 | in gsdl
|
---|
38 |
|
---|
39 | #i = case insensitive, #c = case sensitive
|
---|
40 | #u = unstemmed, #s = stemmed
|
---|
41 | /x = term weight (default = 1).
|
---|
42 |
|
---|
43 | eg computer#is/10 is computer, stemmed and casefolded, with a weight of 10
|
---|
44 | compared to other terms in the same query
|
---|
45 |
|
---|
46 | Proximity searching: NEARx
|
---|
47 | this is used to specify the maximum distance apart two words must be to match
|
---|
48 | eg dog NEAR4 cat - cat must be within 4 words either side of dog.
|
---|
49 | NEAR by itself defaults to 20(??).
|
---|
50 |
|
---|
51 | fielded searching: [ terms]:Field
|
---|
52 |
|
---|
53 | eg [Witten]:Creator
|
---|
54 | [Witten]:CR
|
---|
55 |
|
---|
56 | the field names need to be the names of the metadata elements in your
|
---|
57 | collection. If the collection was built with greenstone, these names are the
|
---|
58 | two letter codes found in the build.cfg file.
|
---|
59 |
|
---|
60 | Multiple terms inside the [] are ANDed together.
|
---|
61 |
|
---|
62 | Different fields can be combined using normal boolean stuff, eg
|
---|
63 |
|
---|
64 | [Witten]:CR & [Gigabytes]:TI
|
---|
65 |
|
---|
66 | Term modifiers can be included inside the [].
|
---|
67 |
|
---|