Re: PHP client for a web application
Hi esteban. Im currently using both in my application. Both are fine. Solarium is great because it models the concepts of solr and can build queries using OOP. The other one is more lower level, so u have to write queries manually, which can be good in some situations. Both are fast enough. Solarium has bigger learning curve. Solarium has built in batch updating and other things like parallel queries. So i would go with solarium. Its a very nice library. On Oct 3, 2012 5:38 AM, "Esteban Cacavelos" wrote: > Hi, I'm starting a web application using solr as a search engine. The web > site will be developed in PHP (maybe I'll use a framework also). > > I would like to know some thoughts and opinions about the clients ( > http://wiki.apache.org/solr/SolPHP). I didn't like very much the PHP > extension option because I think this is a limitation. So, I would like to > read opinions about SOLARIUM and SOLR-PHP-CLIENT. > > > Thanks in advance! > > > -- > Esteban L. Cacavelos de Amoriza > Cel: 0981 220 429 >
Re: UI
My favourite php library is solarium. Everything OOP. I've tried a few. http://www.solarium-project.org/ Sent from my iPhone On 21/05/2012, at 6:44 PM, Johannes Goll wrote: > yes, I am using this library and it works perfectly so far. If > something does not work you can just modify it > http://code.google.com/p/solr-php-client/ > > Johannes > 2012/5/21 Tolga : >> Hi, >> >> Can you recommend a good PHP UI to search? Is SolrPHPClient good?
Re: Is Sphinx better suited to me, or should I look at Solr?
I gave up on sphinx and went to solr. I feel it is more mature. For example, sphinx didn't have an auto start init script and they tried to hit me up for consultancy fees cos I asked a simple question. I use php and use solarium php client. Nice oop interface. Solr has a great community. My initial struggles were with getting it running, mostly because I don't know much about tomcat and it didn't just work for me as documented, but once i stumbled through it was ok. My search results accross 200k documents is instant on a small 512mb rackspacecloud instance so you will have no probs at all using solr for your needs. Sent from my iPhone On 21/02/2012, at 3:32 AM, Em wrote: > Hi James, > > I can not speak for Sphinx, since I never used it. > However, from reading your requirements there is nothing that fears Solr. > > Although Sphinx is written in C++, running Solr on top of a HotSpot JVM > gives you high performance. Furthermore the HotSpot JVM is optimizing > your code at runtime which sometimes allows long-running applications to > run as fast as software written in C++ (and sometimes even faster). > > Given that Solr is pretty fast and scalable (90k docs are a really small > index), you should have a closer look at the features each search-server > provides to you and how they suit your needs. > > You should always keep in mind that users will gladly wait a few > milliseconds longer for their highly-relevant search-results, but do not > care about a blazing fast 5ms response-time for a collection of > trash-results. > So try to find out what your concrete needs in terms of relevancy are > and which search-server provides you the tools to go. > I am pretty sure that both projects provide you php-client-libraries > etc. for indexing and searching (Solr does). > > Kind regards, > Em > > Am 20.02.2012 16:20, schrieb Spadez: >> I am creating what is effectively a search engine. Content is collected via >> spiders at >> then is inserted into my database and becomes searchable and filterable. >> >> I invision there being around 90K records to be searched at any one time. >> The content is >> blog posts and forum posts so we are basically looking at full text with >> some additional >> filters based on location, category and date posted. >> >> What is really important to me is speed and relevancy. The index size or >> index time >> really isn’t too big of an issue. From the benchmarks I have seen it looks >> like Sphinx >> is much faster at querying data and showing results, but that Solr has >> improved relevancy. >> >> My website is coded entirely in PHP and I am planning on using a MYSQL >> database. Can >> anyone please give me a bit of input and help me decide which product might >> be better >> suited to me. >> >> Regards, >> >> James >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Is-Sphinx-better-suited-to-me-or-should-I-look-at-Solr-tp3760988p3760988.html >> Sent from the Solr - User mailing list archive at Nabble.com. >>
Re: Solr and Php Question
Hi mate, I'm a php Dev. Try zend server community edition from zend. Install is easy and comes with most things u need and may solve this for you. Centos is always a bit behind for stability reasons. Zs also has lots of other goodies. Personally I use a php library rather than a php extension so has no dependencies and no installation needed and I can read their source and extend it to suit my needs. There's a few php libraries around for solr. Phpmyadmin can run under php 5.3, but personally I just use mysql client. Damien Sent from my iPhone On 13/07/2011, at 3:07 AM, Cupbearer wrote: > Total Linux noob, 1 month into first server ever... > > CentOS 5.6 Final > Loaded php52 from ius > yum install of mysql > tomcat > > I've got Nutch up and running and working (may need to work on filters at > some point) and I have Solr up and running and indexing everything. But, > then I came to the point of trying to get the results from the Crawl and > Index to display on the webpage that I'm building with Php and it points me > to php.net. The minimum requirements are: > > The libxml and curl extensions must also be enabled for the Apache Solr > extension to be available. > > libxml2 2.6.31 or later is required. > > libcurl 7.18.0 or later is also required. > > The Yum install is 2.6.15 and like 7.13.0 (didn't get past the first one > yet). I have zero idea how to upgrade these! What am I going to have to > check to make sure gets upgraded? I've only run yum installs from different > repositories so far and haven't had to compile anything myself, so maybe if > I have to do that someone can point me to a tutorial. Or, the Search and > Results pages should be pretty simple can I just avoid a few of the newer > commands in php because they aren't compatible and not worry about it and > hope everything gets fixed with centos 6.0? It also seems that 3 or 4 days > ago you only needed libxml2 2.6.17 and now it's up to x.x.31 for a > prerequisite, is this something that I need to learn anyways to keep current > on since it seems to be changing rather regularly? Should I just try to > upgrade my php52 to php53 and see if that gets me the newer repositories? > When I looked at that my yum installed phpmyadmin wasn't compatible with 53 > which is why I went with 52. I didn't bother updating mysql from 5.0 since > there didn't seem to be any blazingly obvious reason to do so (especially > since it's such a small instance). > > Thanks, > > - > > Cupbearer > Jerry E. Craig, Jr. > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-and-Php-Question-tp3163155p3163155.html > Sent from the Solr - User mailing list archive at Nabble.com.