Custom Protein Expression
Functional Protein, 95% Purity
Fast turnaround (2-3 weeks)
1-10 mg from E. Coli expression
for only $1790
No outsourcing to China or India


in vitro Protein Synthesis
Full-length protein in 1 week
95% Purity, From any gene
(toxic or membrane proteins)
Isotopic Labelling for NMR

50 µg~3 mg, $390 to $2500
Excellgen

Archive for December, 2008

Build Search Application for Zen Cart and osCommerce using Sphinx Full Text Search Engine

1, Download Sphinx from http://www.sphinxsearch.com/downloads.html

wget http://www.sphinxsearch.com/downloads/sphinx-0.9.9-rc1.tar.gz
gunzip sphinx-0.9.9-rc1.tar.gz
tar xvf sphinx-0.9.9-rc1.tar

2, Start search engine
mkdir -p /var/log/searchd
/home/sphinx/sphinxsearch/bin/searchd –config /home/sphinx/sphinxsearch/etc/sphinx.conf
Sphinx 0.9.9-rc1 (r1566)
Copyright (c) 2001-2008, Andrew Aksyonoff

using config file ‘/home/sphinx/sphinxsearch/etc/sphinx.conf’…
listening on all interfaces, port=3312

ps -ef |more to check if searchd is running.

3, Write PHP code for search:

< ?php
include('/home/sphinx/sphinx-0.9.9-rc1/api/sphinxapi.php');

$cl = new SphinxClient();
$cl->SetServer( “250.20.2.1″, 3312 );
$cl->SetMatchMode( SPH_MATCH_ANY );
//$cl->SetFilter( ‘model’, array( 3 ) );

$result = $cl->Query( ‘akt’, ‘labsupply_indx’ );

if ( $result === false ) {
echo “Query failed: ” . $cl->GetLastError() . “.\n”;
}
else {
if ( $cl->GetLastWarning() ) {
echo “WARNING: ” . $cl->GetLastWarning() . ”
“;
}

if ( ! empty($result["matches"]) ) {
foreach ( $result["matches"] as $doc => $docinfo ) {
echo “$doc\n”;
}

print_r( $result );
}
}

exit;
?>

Comments

Sphinx Full-text Search Engine for Zen Cart and osCommerce

Sphinx Full-text Search Engine for Zen Cart & osCommerce

1, Download Sphinx from http://www.sphinxsearch.com/downloads.html
cd /home/sphinx/
wget http://www.sphinxsearch.com/downloads/sphinx-1.0.tar.gz

2, Extract gz file

gunzip sphinx-1.0.tar.gz
tar xvf sphinx-1.0.tar

3, Install sphinx

cd sphinx/sphinx-1.0
./configure –prefix=/home/sphinx/sphinxsearch
make
make install

4, Create config file

cd home/sphinx/sphinxsearch/etc
cp sphinx.conf.dist sphinx.conf

edit sphinx.conf

source labsupply
{

type = mysql

sql_host = localhost
sql_user = me
sql_pass = myself
sql_db = mydb
sql_port = 3306 # optional, default is 3306

# SELECT id, grant_id, parent_id, pi_name, project_title, keywords FROM grants
sql_query = \
select a.products_id, a.products_model, a.gi_number , a.manufacturer_name,\
b.products_name , a.keywords, a.host, a.gene_name, a.gene_symbol , a.gene_name_synonyms,\
a.swiss_prot_acc, a.synonyms, a.antigen_name, a.antigen_synonym, a. description,\
a. relevance, b.products_description from products a, products_description b \
where a.products_id =b.products_id \
and a.products_status=1 and a.products_quantity !=0

sql_query_info = SELECT * FROM products WHERE products_id =$id

}

index labsupply_indx
{
source = labsupply
path = /home/sphinx/sphinxsearch/var/data/labsupply
docinfo = extern
mlock = 0
min_word_len = 3
charset_type = sbcs
min_prefix_len = 0
min_infix_len = 3
html_strip = 0
}

indexer
{
mem_limit = 256M
}

searchd
{

port = 3312
log = /home/sphinx/sphinxsearch/var/log/searchd.log
query_log = /home/sphinx/sphinxsearch/var/log/query.log
read_timeout = 5
max_children = 30
pid_file = /home/sphinx/sphinxsearch/var/log/searchd.pid
max_matches = 1000
seamless_rotate = 1
preopen_indexes = 0
unlink_old = 1
}

5, Build Index

/home/sphinx/sphinxsearch/bin/indexer –config /home/sphinx/sphinxsearch/etc/sphinx.conf –all
ls -la /home/sphinx/sphinxsearch/var/data

6, Do a search test

/home/sphinx/sphinxsearch/bin/search –config /home/sphinx/sphinxsearch/etc/sphinx.conf akt
….
words:
1. ‘akt’: 456 documents, 2016 hits

Comments

PHP Search Engine for Zen Cart: Sphinx or Sphider?

A search engine module based on Sphider for Zen Cart Module was recently developed
(see

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=1194).

This module is good for a web site with lot of EasyPages. But for a web
site with 50,000 products and structured data, Sphinx is still the best.

Features of Sphinx
SQL Full-text Search Engine

  • Indexes via SphinxSE direct connection to
    MySQL or PostgreSQL
  • Accepts data in XML format from using the Sphinx API
  • Note that this package does not include
    a robot spider for traversing web sites.
  • High-speed indexing, up to 10 MB/sec on
    fast CPU
  • Can store up to 100 GB text / 100 million documents on a
    single CPU
  • Indexes any number of fields and metadata
    tags, can be changed on the fly
  • Stemming for English and Russian words
  • Simple search modes, “match all”, “match
    any”, “match phrase”
  • Also supports Boolean expressions (using
    &, |, -, and parentheses)
  • Field searching, wildcarding, and proximity operators
  • Fast searching (under 0.1 second on 2-4 GB
    index)
  • Stemming query processing English and Russian natively, and
    with libstemmer
    for French, Spanish, Portuguese, Italian, German, Dutch, Swedish,
    Norwegian, Danish, Finnish, Hungarian
  • Relevance based on BM25,
    (a flavor of TF:IDF) and phrase-based ranking.
  • Sort by relevance, metadata in ascending or descending
    order, time range, or a SQL-like expression
  • Group results by day, week, month, year, or an attribute
    value, and show only the best match per group.
  • Can adjust relevance according to fields
    (even at runtime)
  • Options for faceted metadata display
  • XML results interface for custom
    integration
  • Can replace SQL WHERE, ORDER BY, and GROUP BY query elements
  • APIs for PHP, Python, Java, Perl,
    and Ruby
  • Can utilize many CPU cores
  • Distributed search – multiple search
    engines can search segmented indexes on multiple machines.
  • Scales to at least 1.2 billion records, 30 million searches
    per day on a 15-server installation
  • Source code and binaries available
  • Administration by config file

Sphider Features:


Spidering and
indexing

    * Performs full text indexing.
    * Can index both static and dynamic
pages.
    * Finds links in href, frame, area and
meta tags, and can also follow links given in javascript as strings via
window.location and window.open.
    * Respects robots.txt protocol, and
nofollow and noindex tags.
    * Follows server side redirections.
    * Allows spidering to be limited by
depth (ie maximum number of clicks from the starting page), by
(sub)domain or by directory.
    * Allows spidering only the urls
matching (or not matching) certain keywords or regular expressions.
    * Supports indexing of pdf and doc files
(using external binaries for file conversion).
    * Allows resuming paused spidering.
    * Possbility to exclude common words
from being indexed.

Searching

    * Supports AND, OR and phrase searches
    * Supports excluding words (by putting a
‘-’ in front of a word, any page including the word will be omitted
from the results).
    * Option to add and group sites into
categories
    * Possibility to limit searching to a
given category and its subcategories.
    * Possibility of searcing in a specified
domain only.
    * “Did you mean” search suggestion on
mistyped queries.
    * Context-sensitive auto-completion on
search terms (a la Google Suggest)
    * Word stemming for english (searching
for “run” finds “running”, “runs” etc).

Comparison of Sphider and Sphinx PHP search engines

  Sphider Sphinx
Overall ranking *** ***
Database MySQL, SQLite MySQL, PostgreSQL, Flat files
Multilanguage support No Yes
Support Medium (forum) Good
User interface Easy Easy
Customizability High High
PHP 5 compatible Yes Yes
SQLite compatible No No
URL-free crawling Yes Yes
Install package download 44K ~300K
Installation Medium Easy
Access needed to install Root Shell (non root)
Recommended file limit High Very high
Index speed Very slow 4-10 MB/sec


Ref: 
PHP Search Engine
Showdown 
http://www.onlamp.com/pub/a/php/2006/02/16/search-engine-showdown.html?page=2

Comments

Next Page » Next Page » Next »

Sponsored Links Lab Supply Mall http://www.labsupplymall.com

GeneExpresso DNA Transfection Reagent
Low Cytotoxicity, Higher Transfection Efficiency than Lipofectamine 2000. $188, $138
Protein expression & purification: E. Coli, insect and mammalian cells
Fast turn around, 3 mg of >95% purity functional protein. No outsourcing to China or India. $2500, $1800
Functional Recombinant Proteins by in vitro Protein Synthesis, 3 days, 95% Purity
Full-length, high quality protein, high yield, high throughput, any genes (toxic, low GC content), membrane proteins, isotopic labelling. $598, $398