Concordance view

Post Reply
rjshelq
Posts: 82
Joined: Thu Nov 17, 2005 3:25 pm

Concordance view

Post by rjshelq »

Hi,

In addition to Webinator's standard results format, I need to create an additional, optional, results format that rather than showing just one example of the usage from a given document, will list every (or perhaps up to 10 or 20) occurance of the query term(s) in each document, presented with a relatively few (perhaps 20) words of context for every occurance.

Do you have any scripts available that would provide such a "Concordance" view?

Or, if not, could you sketch out a simple pseudo-code outline of the most practical way to implement a Concordance View? (I'm still quite new to Webinator.. so please assume that I know very little about a search script)

Thanks.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Concordance view

Post by John »

You would want to use the mminfo function in the select with a variable constructed in a similar manner to $mmfmt, but with a wider within, e.g. w/20.

$fields holds the fields to select, so you would add something like:

mminfo($concfmt, Body, 20) Concordance

to get the first 20 hits in the $Concordance variable. $concfmt would be the variable described above similar to $mmfmt.
John Turnbull
Thunderstone Software
Post Reply