We are building a Social Networking website and there are videos, user profiles and other details on the site. The site is developed using Zend Framework. It needs to develop a Site Search Engine feature on this site. It need to index all data in the website and search against that data.
I checked Sphider but it is not easy to use in Zend Framework. And I tried Sphinx but that needs lot of configuration from Terminal. Next I tried is Zend Lucene Component and it works. But I couldn't display the Videos or Profile Image on the result set.
Please suggest an easy but powerful method to build a Custom Search Engine inside website built on Zend Framework.
You should have a look at setting up a Solr search server. It is a Lucene implementation, but scales incredibly well. From my understanding Zend's Lucene implementation, while good for small amounts of data, does not scale well.
There is also a PECL Solr extension for easy access from PHP, regardless of framework.
Related
I have experience with Joomla and have modified and wrote some simple Joomla extensions. I don't have experience using one of the popular PHP frameworks (such as CakePHP), but I was thinking about using the Joomla framework because I'm familiar with Joomla. How would I use the Joomla framework for a software project instead of using regular Joomla and writing the extensions needed for it to extend it's capabilities? Thanks!
The basic idea is that you:
Get a copy of either the whole framework or just the packages you need+dependencies (from github or composer) or use the older copy that is shipped with the CMS,
Bootstrap your application (JApplicationWeb or JApplicationCli).
Write your code using the MVC structure provided.
The big difference with writing a totally independent application is that you are doing just that, you need to build everything in the application whereas in the CMS there are already a lot of things in place. (The good part of that is that you can make new code with no legacy concerns.) For example, if you look at the JIssues project you'll see that they had to think about things like authentication. So as you would expect writing a simple application is simple, writing a complex one is complex.
You can see many examples of framework applications around, ranging from the ones found in the CLI folder of your CMS installation to JIssues, and of course the three web applications in the CMS are all examples of applications on the framework.
The Joomla Framework is intended (among other things) to be the platform upon which you can build a web-application. The framework is like the frame of one of those motorcycles they build on "American Choppers." It provides the backdrop so that you can hit the ground thinking about your app without worrying about User Authentication, database connection, and a thousand other things like those that get in the way of bringing your app to its potential audience.
If you're trying to extend Joomla, the current edition is what you should be using.
I am building a search engine. In this regard, I have built a Lucene indexer in Java and also built a web interface in PHP where the user will submit the query. As my search is geo-temporal specific, so by PHP I have tracked the user's current time and location along with the query. Now my question is how will I pass those values from PHP to Lucene search module that is in Java.
In this context I have studied Zend. But it seems that in Zend I have to rewrite the searcher and indexer in Zend Lucene framework that is different from Java Lucene that I have used. I am asking is there any way that I can use to integrate my PHP web interface with Lucene without changing anything to underlying indexer and searcher that I have written in Java Lucene.
So in brief, I want to know how to pass those PHP variables to the underlying Lucene searcher in Java and display the output of the searcher back in PHP web interface. Thank you.
If I understand Zend Search, it is an implementation of Lucene for PHP (Lucene 2.3 in Zend 1 -- don't know which Lucene version for Zend 2). The API is not a straight port, but you can use Zend Search with vanilla Lucene indexes. Google for "Zend 2 search lucene compatibility".
The Zend_Search_Lucene and related classes that were in Zend Framework 1, which are a standalone Lucene implementation and don't depend on any other libraries, have been replaced with ZendSearch, now a git repository. However, the repository doesn't contain any documentation. I assume the Zend Framework 1 documentation for Zend_Search_Lucene applies equally to ZendSearch: http://framework.zend.com/manual/1.12/en/zend.search.lucene.index-creation.html. I don't know why ZendSearch is not part of Zend Framework 2.
I am starting a new opensource project. This will be a web app with modern layout/functionalities. I want this app to work like gmail/facebook/google group.. or some other google products. I want to load all the js/css and other assets only one time and load part of pages using ajax request.
I want to use PHP (maybe cakePHP, jQuery). I know how to create this kind of app from scratch, but i am looking for some kind of opensource framework which will help me to not create everything from scratch.
Any help would be appreciated.
There is a php framework called Elgg (http://www.elgg.org/) which is a php framework designed for social networking based applications.
Is there any modules/plugins/components that can be used regardless of whatever drupal, joomla, wordpress or zend framework etc or even some native php websites that are not built on any framework?
For example like chatting modules/page that can be easily integrated into your website, or blogging system or maybe login system.
Is it even possible to create such thing?
There is a Dynamic Article plug-in which is edited for several CMS (Joomla, SPIP, PmWiki, and Drupal in beta).
This plug-in enables you to embed your web application (or you CMS component) inside an article of the CMS. The application should be developed with the TinyButStrong template engine since the plug-in is based on it.
With such a solution, your web application can be released for several CMS with the same code.
More generally, if you don't want to embed your solution inside a CMS, TinyButStrong is a PHP template engine simple and independent that can be used as a brick in any framework or software architecture based on PHP.
I have a website which has about 200 to 300 static public pages. I am required to bring about some kind of search functionality on the website which will search all of its public pages. I don't want to use external tools like Google site search, etc. Is there a tool or open source code that will index the content and then display the search results? I am looking for a tool that will maintain its own index and run on the server along with the website. If I can add items to the index and manage it that would be a plus. I have looked at Zend Search Lucene, if there is a tool out there, I am hoping to use it before I make one myself.
Zend_Search_Lucene is a very good choice. It is compatible with the Java version of Lucene (I mean the index files). It can index html documents, it's quite simple to use and configure and has a good documentation.
Using Solr as a service is an option as well.
Sphinx is another tool you might want to look at.
You can try -
Sphider is a lightweight web spider and search engine written in PHP, using MySQL as its back end database. It is a great tool for adding search functionality to your web site or building your custom search engine. Sphider is small, easy to set up and modify, and is used in thousands of websites across the world.
http://www.sphider.eu/