Hello,

Marcin Soltysiak wrote:

What is the best way to search for a string against title, name, abstract,
and body of the articles?  Does midgard have a built in function for doing
this or do I have to parse all the text from all articles to find what I'm
searching for?

Depends on the information you're looking for. If you have a Web site I'd go with an indexing search engine (like MnogoSearch). Also, if you need to match some specific words and do some article operations on the matches, then you're stuck with writing specific code for it (as Solt suggested).

Cheers!

//Henri


Nope. You can get article by name but it is not searching. The only method is to put a list of articles domain into an ex. array and walk thhough this. However you could use just

while(obj->fetch()){
  seach_procedure();
}

But objects returned by mgd_list* functions cannot be rewinded. So the best
IMHO way is to put them into array and walk with foreach or similar
statement.

Miles


Solt


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to