Ganesh H S

Thoughts on open source technologies, search engine optimization, website security

Zend Lucene Search - part4 - Search Results Highlighting

Zend_Search_Lucene_Search_Query::highlightMatches() method allows the developer to highlight HTML document terms in the context of a search query.
In the previous article Zend Lucene Search - part3 - retrieving the indexed data i talked about retrieving the search results. When we search, highlighting […]

Zend Lucene Search - part3 - retrieving the indexed data

Once the index is created, we are ready use zend lucene search to search the website. In the following example, php is the search keyword used to fetch the relevant search results in the already indexed data.

<?php

require_once ‘Zend/Search/Lucene.php’;$query = “php”;

$index = Zend_Search_Lucene::open(”/var/www/lucene-data/blog-index”);

$results = $index->find($query);

echo “Index contains “.$index->count().” documents.\n\n”;

if($index->count())

{

$count = 0;

foreach ($results as $result)

{

$data[$count][”article_url”] […]

Zend Lucene Search - part2 - Real time indexing

For creating the index from the existing data, we need to create the index. Isn’t it a better idea to index each data when its created, to index the real time data we need to open the index which was created earlier, rest of the other things remains same as discussed in the Zend lucene […]

Zend Lucene Search - part1 - creating index

In this article i will be discussing about creating index using zend lucene search .
Conventionally most of the site search are powered by database driven.
Lets consider my blog site, if anyone comes to my site and wants to search for any keyword, if i have to give search results i may have to look into […]

Google experiment

Google and yahoo always comes up with innovative ideas. Yahoo’s YSlow is one of such innovative idea which helps us many web developers to improvise the performance of the website.
Recently came across a article about Google experiment, its a experiment any user can take, its aimed at improving the search experience.
Experiments allows us to join […]

Porting PHP to Javascript : php js

During graduation got interested in web technology, to kick start i started reading html, javascript.
But when i started my career i was bit disappointed when i realised javascript won’t work if the javascript is disabled in the browser, so my senior in first company suggested me to always do server side validation using php.
But […]

Google suggest helps us to know the search count of each keyword/search query. How do we choose the most searched keyword while optimizing our site for search engine optimization.
Lets say, i want my blog site to be listed on top for keywords zend framework. First thing what i did was, i used google suggest by […]

Firefox addon - Customize google

I always wanted to check the links indexed in google, yahoo, and other search engines. Generally i used to enter the search query in google and then search in other search engines for same search query.
Well, here is a firefox add on Customize Google which makes above mentioned search process easier, when we search […]

Search engine optimization for my blog site

When i started blogging, i didn’t know what to write about. Since i had very much interest on zend framework, i started posting articles on zend framework.
While i started blogging, i was targeting my blog site to list on top for few keywords ‘zend framework bangalore‘, ‘zend framework india‘ although intially few other competitor sites […]

Google suggest : pick right search keyword

I always ended up in search engine when i wanted quick results I randomly entered the search keywords and when i didn’t get relevant result of what i am looking for, i used to reiterate the search action with different search terms.
Google Suggest is a interesting feature that analyzes the user input search keywords and […]

« Previous Entries  Next Entries »