/usr/portage


Strict Standards: Non-static method serendipity_plugin_api::hook_event() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/functions_smarty.inc.php on line 554

Strict Standards: Non-static method serendipity_plugin_api::get_event_plugins() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/plugin_api.inc.php on line 1012

Build queries for Lucene/Solr indexes in PHP 2

We use Solr a lot at InterNations. Beside usual full text searches, we use it every time we need to receive documents nearly free of charge. It is fast, it is stable and, after some wrestling, our data import works very well as well.

For more than a year we added more and more functionality to a component for building Solr/Lucene queries programmatically. We provide two different ways to create queries: for complex queries we use an expression builder, for simpler ones we have a string based class. A huge advantage of a programmatic API is security: while Lucene’s query language is read-only and therefore non-destructive, query injections can lead to serious data breaches, which both components help to avoid by escaping input strings.

We now feel they are mature and stable enough to be released to the public: say hello to internations/solr-query-component.

Filed on 23-03-2013, 21:09 under , , , , & two comments & no trackbacks

Trackbacks

Trackback specific URI for this entry


Strict Standards: Only variables should be assigned by reference in /home/lars/websites/usrportage.de/htdocs/include/functions_smarty.inc.php on line 73

No Trackbacks

Comments


Strict Standards: Non-static method serendipity_plugin_api::hook_event() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/functions_comments.inc.php on line 292

Strict Standards: Non-static method serendipity_plugin_api::get_event_plugins() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/plugin_api.inc.php on line 1012

Strict Standards: Only variables should be assigned by reference in /home/lars/websites/usrportage.de/htdocs/include/functions_smarty.inc.php on line 73

No comments

Add a Comment & let me know what you think


Strict Standards: Non-static method serendipity_plugin_api::hook_event() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/functions_smarty.inc.php on line 554

Strict Standards: Non-static method serendipity_plugin_api::get_event_plugins() should not be called statically in /home/lars/websites/usrportage.de/htdocs/include/plugin_api.inc.php on line 1012