Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > PHP
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 01-20-2008, 08:28 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
Zend_Search_Lucene

Anyone using the Zend Framework? .. specifically the Zend_Search_Lucene library?

It's pretty damn cool to be able to add a search engine to any site so easy but I can't figure out one thing regarding the search.

To search within a category, you should be able to use this syntax:
Code:
title:foo
It works fine with a string, but not with numbers. I've tried quotes around the numbers too. Just doesn't work, i.e. I get no results even though the category definitely is indexed with the numbers I'm searching for.

Probably a long shot but I thought I'd ask, or at least let other's know how easy it is to add a search engine with this library.

Zend Framework: Documentation

Here's the site I made with it. It is US Federal Aviation Regulation: FAR DB
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 01-22-2008, 10:00 AM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 595
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Here's some stuff for the java lucene faq that seem promising:
Quote:
Originally Posted by java lucene docs
  • The term is in a field that was not tokenized during indexing and therefore, the entire content of the field was considered as a single term. Re-index the documents and make sure the field is tokenized.
  • The term you are searching is a stop word that was dropped by the analyzer you use. For example, if your analyzer uses the StopFilter, a search for the word 'the' will always fail (i.e. produce no hits).
Maybe there's a stop filter on numeric stings? Or maybe the normalizer is dropping numeric strings from the title index.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 01-22-2008, 10:18 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
Quote:
Or maybe the normalizer is dropping numeric strings from the title index.
hmm .. that makes the most sense to me. so maybe if i index that field as 'part 91' instead of just 91. that gives me something to work with, thanks!
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 01-23-2008, 03:43 PM   #4 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
Always funny those "smart" search tools. No wonder i wrote my own for unicode
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 09:38 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle