The EuroCMS Search Engine
The EuroCMS Core Search Core Component.
handlers
The supported handlers for now are:
- Database
This will query the database for published content in the content database table.
- Solr
code
There is no live code. But, here is the Abstract search code containing the following:
The "Search" class needs to have the folling functions:
Function
-
String("string") Push this to the Search Engine
-
Sanitize("$sanitize") Sanitize this string
-
Type("$Type) Search a specific type of the content: pages,files:pdf,images,binaries,etc...
-
domains("$domain")
Content code:
$QUERY = "SELECT * FROM content WHERE domain_id = '1' AND user_id = '1' AND group ='1' WHERE status = 'enabled";
$QUERY = "SELECT * FROM pages WHERE user_id = '1' AND group = '1' WHERE content like = '%$string%'";
Features:
-
all searches will be sanitized by default.
-
If you are allowed, search in domains
-
Search the type of content