Problem with words contains '-' character
Posted by:
Sajo Sajo
Date: March 12, 2008 04:36PM
Hi,
I have problem with full text search with words that contains '-' character like 'LD-3W' or 'HL-42N' etc.
I have these 4 rows:
Name
-----------
LD-3W
LD-3WW
LLD-3W
LLD-3WW
select * from table where match (Name) against ('LD-3W');
return 0 rows
select * from table where match (Name) against ('"LD-3W"');
return 0 rows
select * from table where match (Name) against ('"LD-3W"' IN BOOLEAN MODE);
return 0 rows
select * from table where match (Name) against ('+"LD-3W"' IN BOOLEAN MODE);
return 0 rows
select * from table where match (Name) against ('+"LD-3W"*' IN BOOLEAN MODE);
return 0 rows
select * from table where match (Name) against ('"LD-3W"*' IN BOOLEAN MODE);
return 0 rows
I need to return all rows where is LD-3W enywhere in the Name column. So for this example they are all 4 rows. Of course I can use Name like "%LD-3W%" in query but this is about thousand times slower. Doesn't matter in table with few rows but I have table with 2 milions rows and this search ends in 10-15 seconds depends on server load.
Some ideas how to solve this?
Edited 1 time(s). Last edit at 03/12/2008 04:38PM by Sajo Sajo.
Subject
Views
Written By
Posted
Problem with words contains '-' character
7485
March 12, 2008 04:36PM
4176
March 12, 2008 06:20PM
3391
March 05, 2009 02:54PM
3292
March 06, 2009 08:10AM
3387
March 11, 2009 06:02AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.