"followed by" syntax

tboyer
Posts: 68
Joined: Mon Aug 28, 2006 4:43 pm

"followed by" syntax

Post by tboyer »

Working in Texis, I'm trying to search for a phrase followed by 2nd phrase somewhere in a document.

I want to find "pick peaches" followed by "bake pie" IN THAT ORDER. Order is important, proximity is not.

I would like to use "pick peaches * bake pie" or "pick peaches * bake pie * eat dessert" but there seems to be a limit to how many characters the * represents. Can I adjust that upward through APICP or indexing parameters?

Thanks in advance.

Tom B
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

"followed by" syntax

Post by mark »

* is always up to 80 chars. Maybe you could use likep with likeporder turned up to 1000 and all other likep controls turned down to 0 or some other low number.
tboyer
Posts: 68
Joined: Mon Aug 28, 2006 4:43 pm

"followed by" syntax

Post by tboyer »

I'll take a look at LikeP but I don't think it will work for this purpose -- i need an absolute certainty of match/non-match.

Is there any other way to say I only want documents that contain A before B or B after A? I'd rather not have to use Rex because it might require other gnarly workarounds but I'm presuming the simplest Rex way of doing this is ``>>"pick peaches"=!"bake pie"+"bake pie"''
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

"followed by" syntax

Post by mark »

Turning on likepallmatch should help out your likep usage.

Too many quotes in your rex
>>pick peaches=!bake pie+bake pie
User avatar
John
Site Admin
Posts: 2624
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

"followed by" syntax

Post by John »

The other thing you may be able to do, I'd need to experiment to see if it would work, would be to use mminfo to get the offsets and make sure they are in the right order, depending on how much work you want to do after finding a candidate.

E.g. mminfo('"pick peaches"',Field,1,0,3) will return a pair of lines like:

300 <Data from Texis> offset length suboff sublen
301 End of Metamorph hit
John Turnbull
Thunderstone Software
tboyer
Posts: 68
Joined: Mon Aug 28, 2006 4:43 pm

"followed by" syntax

Post by tboyer »

thx much. i see that Rex doesn't stop at spaces