Jump to content

PHP mysql search engine


menwn

Recommended Posts

Hi everyone,

I have 2 problems building a search engine in mysql.

1. I have a rather small database about 280mb containing Greek laws. It has two tables in it and I want to perform searches using phrases containing wildcards. I want for example to be able to search "app* mac*" and get results that have not the two possible words somewhere in the text but as a phrase either like application mackintosh or apple machine for example. This is extremely usefull in greek. I know that +app* +mac* will give me the two words definetely in the text but not as a phrase.

Is this fisible? I use fulltext search but for now nothing. I know that boolean search is not designed to do something like this but is there any way to manage it?

2. Why it takes so long to search after i use a left join between the two tables? When I search each table separately everything works pretty fast. Do I have to make a common index? if yes how?

I am a newbie in all this so any help would be extremely appreciated. Thanks in advance
menwn
Link to comment
https://forums.phpfreaks.com/topic/32595-php-mysql-search-engine/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.