CATSEARCH SQL Query Example
A typical query with CATSEARCH includes the following structured clause to find all rows that contain the word camera ordered by the bid_close date:
SELECT FROM auction WHERE CATSEARCH(title, 'camera', 'order by bid_close desc')> 0;
The type of structured query tht you can enter depends on how you create your sub-indexes.
See Also: “Creating a CTXCAT Index”
As shown in the previous example, you specify the structured part of a CATSEARCH query with the third structured_query parameter. The columns in the structured expression must have a corresponding subindex.
For example, assuming that category_id and bid_close have a subindex in the ctxcat index for the AUCTION table, enter the following structured query:
SELECT FROM auction WHERE CATSEARCH(title, 'camera', 'category_id=99 order by bid_close desc')> 0;