473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Could 'Match' & 'March' be searched using wildcard character as "Ma*ch" or "Ma?ch" in

I want wildcard character to search Match & March at the same time in indexing service. I am trying it with following query:

Select DocTitle,Filename,Size,PATH,URL,Directory from Scope() WHERE CONTAINS('"Ma*ch"')

Or

Select DocTitle,Filename,Size,PATH,URL,Directory from Scope() WHERE CONTAINS('"Ma?ch"')

But I am not getting any response as I think it tries to find Ma*ch as the complete word.

When I use * at the end of any prefix then it works fine, but I need it in middle of a word.
"Search is being done through documents not from database."
Oct 14 '11 #1
1 1491
GaryTexmo
1,501 Expert 1GB
Honestly, I don't know LINQ very well so hopefully one of the other experts can weigh in on this one. For myself, I'll just ask you a few questions which will maybe lead you to the answer, or at least clarify to me what your code is doing.

The code you wrote is basically...

Select <fields> from <object> where <condition>

... this seems fairly straightforward to me and I assume they are properties on a Scope object; however, I have two questions...

1) You are selecting from Scope()... does that automatically know enough to instantiate a new object? I would have expected you to need "new Scope()" or an object of type Scope there. Or is that a method that returns an object structure that the fields are a part of?

2) Your condition says "WHERE CONTAINS("Ma?ch")" but it doesn't specify what should contain that text. If it were SQL, you would write "where <field> contains 'Ma?ch'" but in your example you don't specify a field.

Could either of those have something to do with it?
Oct 14 '11 #2

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

Similar topics

2
by: deko | last post by:
I'm trying to use a textbox to search and display records as each letter is typed in - similar to the behavior of a combo box. But for some reason I can't seem to get the wildcard search character...
1
by: Bruce Lawson | last post by:
Hi, I am confused about Microsofts description of this Transact SQL reference; (Wildcard - Character(s) to Match. The description says "Matches any single character within the specified range or...
2
by: Gighen | last post by:
Is there some method to copy files from a folder to another using jolly characters using VB 2005? I know that File.Copy(String,String) doesn't support this feature. thnks in advance Gighen
1
by: Lucvdv | last post by:
In my assembly.vb files, I'm using the revision/build wildcard style: <Assembly: AssemblyVersion("3.0.*")> <Assembly: AssemblyFileVersion("3.0.*")> This onkly seems to work in projects that...
0
by: Parul | last post by:
How could we send mails automatically using ASP.Net. I have to make a remainder of shows by which I can send notifications of remainder to the users before there shows starts.
2
by: dstyles7 | last post by:
i created a list box and text box with a command button below the txt box is used to find info in the list box . i created a sql stament that does this. however i would like to create a wild card...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
Is it possible to use a wildcard like feature with Dataview.Find? Actually, I tried that but did not get any rows. Is there some wildcard like feature of the dataview or some other object that I...
1
by: pyssarma | last post by:
hi, I am new to mysql (4.0) php combination. Trying to display mysql table data using php. I have tested connection successfully but could not display table data using php. What could be the...
0
by: savage678 | last post by:
Hi Everyone, I am new to this forum and am i dire need of some help. I am trying to use wildcard searches in infopath. I have it connected to an access database using data connection. I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.