Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Searching with and without punctuation should work

Started 3 weeks, 3 days ago by psr123
Hi, I have a problem while searching with punctuation characters. For example I have a word "Sion's Glory". When I search with the keywords like "sion","sions" and "sion's", in that three situations search should have to work and will have to return the result. How can I work out the above situation? What changes I have to do in the config file? Any body respond this post. It was ...
Site: Sphinx - Free open-source SQL full-text search engine  Sphinx - Free open-source SQL full-text search engine - site profile
Forum: Common forum  Common forum - forum profile
Total authors: 2 authors
Total thread posts: 6 posts
Thread activity: no new posts during last week
Domain info for: sphinxsearch.com

Other posts in this thread:

barryhunter replied 3 weeks, 3 days ago
The most basic way to 'solve' this, would be to add ' to ignore_chars, so they stripped before indexing. And use stemming to make with/without the 's' work as the same.

psr123 replied 3 weeks, 3 days ago
> The most basic way to 'solve' this, would be to add ' to ignore_chars, so they stripped > before indexing. And use stemming to make with/without the 's' work as the same. > > Will this work for singular and plural words for search? That means can I return any of the singular word or plural word.

barryhunter replied 3 weeks, 2 days ago
> Will this work for singular and plural words for search? That's what morphology/stemming does.

psr123 replied 3 weeks, 1 day ago
> > Will this work for singular and plural words for search? > > That's what morphology/stemming does. > Ok Barry. I have one more doubt regarding this. We are using PHP API to fetch the results. $cl->SetMatchMode(SPH_MATCH_ALL); $result = $cl->Query('biblical theology' 'authoridx' ); When we use MatchMode as "SPH_MATCH_ALL" We need the search words should be ...

barryhunter replied 3 weeks, 1 day ago
make sure you have index_exact_words enabled in your index definition (so that the index supports both stemmed and non stemmed searches). Then for the 'any' query actually do $cl->SetMatchMode(SPH_MATCH_EXTENDED2); $result = $cl->Query('=biblical | =theology' 'authoridx' ); (stemming is used on all searches, except prefixing the word with = and using SPH_MATCH_EXTENDED2 - but ...

 

Top contributing authors

Name
Posts
psr123
3
user's latest post:
Searching with and without...
Published (2009-11-11 11:26:00)
> > Will this work for singular and plural words for search? > > That's what morphology/stemming does. > Ok Barry. I have one more doubt regarding this. We are using PHP API to fetch the results. $cl->SetMatchMode(SPH_MATCH_ALL); $result = $cl->Query('biblical theology' 'authoridx' ); When we use MatchMode as "SPH_MATCH_ALL" We need the search words should be stemmed....
barryhunter
3
user's latest post:
Searching with and without...
Published (2009-11-11 11:33:00)
make sure you have index_exact_words enabled in your index definition (so that the index supports both stemmed and non stemmed searches). Then for the 'any' query actually do $cl->SetMatchMode(SPH_MATCH_EXTENDED2); $result = $cl->Query('=biblical | =theology' 'authoridx' ); (stemming is used on all searches, except prefixing the word with = and using SPH_MATCH_EXTENDED2 - but requires 0.9.9 I beleive)

Related threads on "Sphinx - Free open-source SQL full-text search engine":

Related threads on other sites:

Thread profile page for "Searching with and without punctuation should work" on http://sphinxsearch.com. This report page is a snippet summary view from a single thread "Searching with and without punctuation should work", located on the Message Board at http://sphinxsearch.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity