473,903 Members | 6,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CONTAINS clause with multi-word "AND" inflectional searching??? help...

6 New Member
What if you want to search using FTS with AND logic using the FORMSOF(inflect ional,...) inside the CONTAINS() clause???

if my search phrase is "light hearted" I can easily do an OR search using the following in my where clause:
CONTAINS(Colnam e,'formsof(INFL ECTIONAL,light, hearted).
but the and is far more tricky....

does anyone know how to do this without having multiple Contains statements (which greatly increases overhead)?

I know that I can use AND in a straight contains like so:
CONTANS(column, '"light" AND "hearted"') but this does not allow me to explore inflectional variations on the words...

nesting multiple FORMSOF's doesn't seem to work either like so:
contains(column ,'"formsof(infl ectional,light) "' AND 'formsof(inflec tional,hearted) "')

anyone else found how to do this?
Jan 22 '07 #1
3 4911
6 New Member
just to clarify I think 2 better search words for my ex. would have been "sport" and "award" and it's really important that I get results for Sports, Sported, Awards, and Awarded. Then I'd have any combination of the two words Inflectional variations (one from each root word) that exist in the same record returned in my resultset.
Jan 22 '07 #2
1 New Member
Hello garrettm,

I've been googling like crazy and it seems that I have the same question that you have. Did you ever find a solution? For me, the following formsof clause compiles but it doesn't return results:

formsof(inflect ional, "surreal artist")

Although there is clearly the phrase "surreal artist" in my database. Using freetexttable, I do get it in my result set--but I like the control I have with containstable.
Dec 27 '07 #3
6 New Member
Hello garrettm,

I've been googling like crazy and it seems that I have the same question that you have. Did you ever find a solution? For me, the following formsof clause compiles but it doesn't return results:

formsof(inflect ional, "surreal artist")

Although there is clearly the phrase "surreal artist" in my database. Using freetexttable, I do get it in my result set--but I like the control I have with containstable.
I posted the answer on WIKI in the discussion page...
Dec 28 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Jack | last post by:
Hi, I have come to point in my db design where I'm trying to figure which is the best approach in making it generic (does this really matter?!?) Senario - I have a table called JOBS and this table contains field such as JobTitle, JobDescription, Salary etc I want to add to this table other attributes which are specific to a certain Job Industries.
by: Andrew Poulos | last post by:
If I'm searching for an occurance of a value in a multi-dimensional array how can I get it's index returned as an array, if found? For example, if: foo = new Array(); foo = , 5, , 9, 10]; Array.prototype.findValue = function(val) { // blah }
by: Jean | last post by:
Hello all, I have the following data, that was queried and sorted to columns PROBLEM_ID and then by STATUSDATE (ascending): STATUS_ID STATUSDATE PROBLEM_ID --------- ---------- ---------- 10 12/04/2005 1234 40 15/05/2005 1234
by: dan heskett | last post by:
Hello group, I am trying to get used to vb.net coming from a far far far away set of tools. What i want to do is setup an object in my application that contains other object types, that act like collections. For example: objQuotes.Quotes("2004-10-08").Item("MSFT").StockQuote = "45.45"
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
by: farriswheel | last post by:
Good Day, I am attempting get a total sum for the items selected, I keep receiving a error in my query when I try to use the where clause: "the expression is typed incorrectly" Notice in the where clause I am trying to retrieve information from a different form! Here is the code: SELECT SUM (model_tbl.unitprice) as cost FROM model_tbl
by: Mr. SweatyFinger | last post by:
where have they all gone. alt.suicide? alt.findContol.then.slit.your.own.throat?
by: askmeofit | last post by:
I'm a Phd student in statistics, and I'm writing computer code for the simulation of stochastic differential equations. Little background about my knowledge: I know C programming decently, and my main reference for C++ programming is the book: "C++ and Object- oriented Numeric Computing for scientists and Engineers" which I studied chapter to chapter 1 year ago and I'm in the process of studying it again (I forget things easily....). I...
by: =?Utf-8?B?VGVycnk=?= | last post by:
I am implementing an 'incremental search', where as the user types into a textbox, a datagridview's current position is updated to match the first record that contains what the user has typed so far. In this particular case, I am searching the 'CompanyName' column of the underlying dataview, which of course is sorted by this column. I have noticed that company names like "U-Freight" and "U-Haul" appear after company names like "UBS" and...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.