clueless about mminfo function

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

clueless about mminfo function

Post by Thunderstone »



Hi,

There isn't very much documentation on the mminfo function other than http://www.thunderstone.com/texisman/node76.html and I'm
clueless as to how to actually use it.

I would appreciate an actual example of how to use it. The best I've come up with is the following:

<$query = "Cancer test">
<sql "select mminfo($query, $Body) matches from html where Title\Meta\Body likep $query">
$matches
</sql>

FYI, I simply want "Cancer" to print out since it actually does appear in the Body. The word "test" does not. I've made sure to
test the query out.


Juan E. Camacho
Web Developer
juan@camacho.com




User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

clueless about mminfo function

Post by Thunderstone »



Something like

<$query = "Cancer test @0 w/.">

should do what you want. You may need to disable some of the query
protection features to get mminfo to work (see <apicp> documentation),
so you should be aware of the consequences.

The @0 and w/. indicate that you want any of the words, and only the
actual words.

John Turnbull
-------------
Thunderstone Software

Juan Camacho said:


User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

clueless about mminfo function

Post by Thunderstone »



Also,

Sorry about the poor docs for the mminfo function, we're correcting
them now. The underlying function is better explained in 'C' api docs.
Do a search for "infommapi" on our site.





Post Reply