How to Use FULL TEXT Indexing Search on file names with brackets

I would like to use a FULL Text Seach query to find Files on a windows file system
The Problem is when the case comes up where there is a parentheses"()" in the file name. This example was created from a file copy being pasted in the same folder location as the original a few times.
Here is my code:
DECLARE
@SearchWord VARCHAR(50)
SET @SearchWord = '"KAP1556PP_P01(2).jpg"'
SELECT [FileName], [FilePath] FROM [dbo].[tblLegalPlan] WHERE CONTAINS(*, @SearchWord)
When I use Double quotes for the @Searchword I recieve no results.
SET
@SearchWord = '"KAP1556PP_P01(2).jpg"'
When I remove the Double  Quotes for the @Searchword I recieve an error message:
SET
@SearchWord = 'KAP1556PP_P01(2).jpg'
Msg 7630, Level 15, State 2, Line 8
Syntax error near '(' in the full-text search condition 'KAP1556PP_P01(2).jpg'.
When I search for files containing TEXT up to the bracket i Get undesrired results obviously:
SET
@SearchWord = '"KAP1556PP_P01*"'
Results
FileName FilePath
KAP1556PP_P01(1).jpg BC\EPP\KAP
KAP1556PP_P01(2).jpg BC\EPP\KAP
I would like results where I can search for the file name and only one file is found matching the search word.
Thanks

Is this a SQL Server Reporting question?  You maybe better off posting this in a more relevant forum.

Similar Messages

  • Embedding Full-text Index into PDF File

    Hello Everyone,
    I've tried to create and embed full-text index into PDF file, but with no luck. I've followed steps described at http://help.adobe.com/en_US/Acrobat/9.0/Standard/WSC28D4DBB-6A78-4027-9E04-F50FE411CFB9.w. html - there can be seen progress of collecting of data and at the end the button Update index is enabled. This is signal for me that Index was created. After clicking on Ok button, saving document as new one and then reopening "new created" document, there is info that no Index is embedded in the Manage Embedded Index dialog. Is there any other step necessary to do? Or is it bug? Adobe Acrobat Pro 9.1 on Windows Vista 32bit is used.
    Jan
    PS: Interesting is also comment at the bottom of above mentioned help page...

    Thanks for the response. It is true that if I make changes and look at the embedded index status, it shows that it needs updating
    However the problem I can't get around after extensive testing is that sometimes for no apparent reason the index is dropped on save. This can happen if I check the status of the index to make sure it is valid, save the file, and reopen it.
    I've concluded that this must be a bug and am using other indexing options for the time being.

  • Is a Full Text Index search case sensitive or not in SQL Server 2012?

    I setup full text index on my contact table and am attempting to run a search on it using the following query:
    SELECT *
    FROM sysdba.Contact C
    WHERE CONTAINS(C.FirstName, 'Test')
    OR CONTAINS(C.LastName, 'Test')
    The problem is it's clearly running a case sensitive search. I did a quick search to find out how to change it to be case in-sensitive and found two pages (both for SQL Server 2012) with conflicting answers:
    1 - MSDN - "Query with Full-Text Search" - http://msdn.microsoft.com/en-us/library/ms142583(v=sql.110).aspx
    Case sensitivity
    Full-text search queries are case-insensitive. However, in Japanese, there are multiple phonetic orthographies in which the concept of orthographic normalization is akin to case insensitivity (for example, kana = insensitivity). This type of orthographic normalization
    is not supported.
    1 - TechNet - "Full-Text Search (SQL Server)" - http://technet.microsoft.com/en-us/library/ms142571(v=sql.110).aspx
    Full-text queries are
    not case-sensitive. For example, searching for "Aluminum" or "aluminum" returns the same results.
    Can someone please explain this? Is it possible to do it without it being case sensitive? If yes, how?
    (Sorry, I couldn't make those links b/c TechNet hasn't verified my account)
    Thank you for your time and help,
    Hanan

    Whats the collation setting for the columns? try using a case insensitive collation as below
    SELECT *
    FROM sysdba.Contact C
    WHERE CONTAINS(C.FirstName COLLATE SQL_Latin1_General_CP1_CI_AS, 'Test')
    OR CONTAINS(C.LastName COLLATE SQL_Latin1_General_CP1_CI_AS, 'Test')
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Full text index searching in large document sets

    I have been placed in charge of a digital PDF document library for a small biotech company. The library consists of about 1000 100-300 page .pdf documents which have been scanned and OCRed. In order to facilitate the full text searching of the documents a PDX catalog has been created. In theory, the PDX catalog would seem to be an excellent means of quickly accessing the data, but due the sheer volume of text that is contained in the documents this does not seem to be the case.
    Any given search may take hours to complete and many computers in the department have been known to lock up due to the load of running a search. Obviously, this has made using the PDX search more of a hassle than it is worth.
    I do not know exactly how the index searches work, but from what I gather they somehow search within each document in turn and return to you all the instances in all the documents that contain a certain term. If this is the case, than it would make sense that the searches would take a long time because the search would have to search each of the 1000 documents in sequence.
    The thing is: we really do not need to know the context and placement of every instance that a word appears in a document. All we need to know is IF it appears, and perhaps how many times. Is there a way to make an index that will simply give us this information without having to search the actual document?
    Heres an example of what I am trying to achieve:
    Note: I know almost nothing about full text indexes so please forgive me if any of this sounds insane
    Lets say we have a document called "word count.pdf" which contained the following text:
    "blah blah yadda yadda text Recombinant human insulin more text still texting and so on"
    And another called "word count 2.pdf" with the following text
    "Recombinant human insulin and la la la dee do"
    The indexes for these files could be condensed and stored like this:
    "Word count.pdf"
    Blah 2
    yadda 2
    recombinant 1
    human 1
    insulin 1
    text 2
    texting 1
    and 1
    so 1
    on 1
    "Word count 2.pdf"
    recombinant 1
    human 1
    insulin 1
    and 1
    la 3
    dee 1
    do 1
    In this example, if we were to run a search on "text" the index would return "word count.pdf, 3 instances (2 of text and 1 of texting" whereas if we were to search for "recombinant" it would return both "word count.pdf, 1 instance" and "word count 2.pdf, 1 instance".
    This way, I could quickly weed out all documents that do not have the word that I am looking for and get an idea about which documents should be searched more in depth without scanning every single instance of the term in every document.
    Is there any way to accomplish something similar to this using acrobat? (Or anything else, for that matter)
    My specifications: (similar to specs of all computers searching the pdx):
    Windows XP,
    intel celeron CPU 2.6GHz, 1G of ram
    Adobe Acrobat 8 Professional

    Look at dTSearch. We used the publisher version for a CD with large files sets (with hundreds of pages per file/thousands of PDF pages of multicolumn index data - text heavy), and it does a great job. The desktop version would provide the type of searching you are looking for. Indexing is also very fast. Our customer complained, like yourself, about the speed of searches in Acrobat 6 and higher - most of the delay is due to the population of the results window.
    http://www.dtsearch.com/

  • Using the regex to match the file name with date time

    Hello all,
    currently I had problem to match the following file name with the date time. Of course I can use this regex like ""(\\\\w+|.+).(zip)" to match it. However in the current application i need to parse the file name and get the current date time to check if it is matched. Does anyone have good idea?
    {code}
    testfile10-08-09-2008-08-21-04-24-0443.zip
    testfile11-08-09-2008-08-22-04-24-0441.zip
    {code}
    thanks in advanced!

    lauehuang wrote:
    Hello all,
    currently I had problem to match the following file name with the date time. Of course I can use this regex like ""(\\\\w+|.+).(zip)" to match it.That regex doesn't make a lot of sense:
    - with "\\\\w" you probably meant "\\w";
    - "\\w+|.+" doesn't make sense: you can simply do ".+" in that case;
    - ".(zip)" will also match the string "%zip" or "Ezip".
    However in the current application i need to parse the file name and get the current date time to check if it is matched. I don't know what you mean by that.

  • How can i put a "/" or "\" in a file name with filewriter?????

    hi there
    how can i put "/" or "\" in a file name? i am using filewriter to create file, here is my code
    String fileName = year+"\\"+month+"\\"+date+":"+hour+":"+minute+":"+second+FILE_EXTENSION;
    fw = new FileWriter("users"+"/"+userDirectory+"/"+OUTPATH+"/"+fileName, false);
    i keep getting error message :"invalid file name, path, directory...", i want to have the following format in my file name: yyyy/mm/dd:hh:mm:ss.txt,
    do you know how to get date and time in this format: ie. March 10, 2002 14:01:32, or something like this?
    thank you

    You are using invalid characters in you name. For example,
    : - is used to separate the drive from the path
    / - is used to separate directories
    therefore they can't be used in the filename.
    Open an editor and try creating a file using the format you want and see if the editor can save it, before attempting to do it in Java.

  • Give me one query how to use full text search

    fulltext catlog ,populating fulltext index one example
    jitendra

    fulltext catlog ,populating fulltext index one example
    jitendra
    Hello,
    Please take a look at the following example:
    CREATE DATABASE FULL_SEARCH_TEST
    USE [FULL_SEARCH_TEST]
    Create Table FullText_Search
    Id Int Primary Key Identity(1,1),
    Title Nvarchar(50)
    GO
    INSERT INTO FullText_Search VALUES(N'España')
    SELECT * FROM FullText_Search
    GO
    CREATE FULLTEXT CATALOG FTSearch
    GO
    --Show all constraint names
    SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
    CREATE FULLTEXT INDEX ON FullText_Search
    (Title) KEY INDEX PK__FullText__3214EC07558F517A
    ON FTSearch;
    ALTER FULLTEXT CATALOG FTSearch
    REBUILD WITH ACCENT_SENSITIVITY = OFF
    SELECT FULLTEXTCATALOGPROPERTY('FTSearch', 'accentsensitivity');
    SELECT * from FullText_Search where contains(Title,'"España"')
    GO
    SELECT * from FullText_Search where contains(Title,'"espana"')
    Regards,
    Elvis Long
    TechNet Community Support

  • Unable to full text index the contents in Oracle 11g UCM

    Hi,
    I am new to the Oracle UCM 11g.
    i am unable to full text index the content files that are check-in into the Oracle UCM.
    I have added the below entries in config.cfg file:
    SearchIndexerEngineName=OracleTextSearch
    IndexerDatabaseProviderName= SystemDatabase
    AdditionalEscapeChars=-;#
    While performing the indexing operation using Repository Manager only, metadata of the content files are indexed, but full text is not getting indexed.
    What is missing here in Oracle UCM for not fulltext indexing the contents? What configurations do i need to do for this so that i can search perform the full text search on the Contents in Oracle UCM?
    Thanks in Advance
    Dipesh

    Hi Srinath,
    Collection rebuild cycle runs perfectly fine. After enabling tracing for Indexer and systemdatabse, i got the below info in the log:
    "Finished rebuilding the search index with a total of 123 files successfully indexed. A total of 0 files had a full text index."
    The below is the details of the activeindex.hda:
    <?hda version="11gR1-11.1.1.3.0-idcprod1-100505T121221" jcharset=UTF8 encoding=utf-8?>
    @Properties LocalData
    UseImplicitZonedSecurityField=true
    blFieldTypes=
    ActiveIndex=index1
    blDateFormat=M/d{yy}{ h:mm[:ss]{ a}}!mAM,PM!tGMT+05:30
    @end
    @ResultSet SearchCollections
    7
    sCollectionID
    sDescription
    sVerityLocale
    sProfile
    sLocation
    sFlag
    sUrlScript
    TestHost
    !csSearchDefaultSearchCollection
    English-US
    local
    index1
    enabled
    <$URL$>
    @end
    Is it possible that OracleTestSearch Component is missing in Oracle UCM?
    Thanks
    Dipesh

  • What is Full-Text Indexing

    Hi 
    Currently am working indexing method.I what to know what is mean by full-text indexing could please anyone explain with examples and links thanks 

    The
    full-text index is the basis of iFTS (Integrated Full-Text Search). Starting with SQL Server 2005, Full-Text Search supports the creation of indexes on XML columns and allows you to do extremely very fast searches of textual contents
    stored in columns of the char, nchar, varchar, nvarchar and so on.
    So it basically creates an index similar to one you can find at the back of any book. It contains a list of words, with pointers to the tables and rows that contain the words. SQL Server calls
    this index, called a full-text index, when you issue a full-text query; it returns a list of rows that contain the words in your search phrase as shown in here
    SELECT
    * FROM Person.Contact
    WHERE
    CONTAINS(*, ‘“peanut butter” NEAR “jam”’)
    There are
    two ways to create a full-text index, Using T-SQL commands, and
    using the Full-Text Wizard.
    You can find the Wizard here in SSMS
    To build your full-text catalogs and indexes in using T-SQL, you need to use the
    CREATE FULLTEXT commands.
    There are three commands for full-text index creation and maintenance:
    CREATE FULLTEXT CATALOG
    CREATE FULLTEXT INDEX
    ALTER FULLTEXT INDEX
    I hope this helps too to clear up and gives you some hint in making do more research about it. If I were you I would buy this book and read if I need to have more knowledge about it. It's all about Full Text Search.  Pro
    Full-Text Search in SQL Server 2008 by Michael Coles with Hilary Cotter
    Please remember to click “Mark as Answer” on the post that has answered your question as it is very relevant to other community members dealing with same problem in seeking the right answer

  • Disable "Full-Text indexing"

    I've tested performance with and without Full-Text Indexing turned on. The performance is much better without this option.
    My question is it Ok to turn this option off for ECC 6.0 / SQL 2005 ?
    Thanks,
    Ld
    Edited by: Linwood Doty on Oct 4, 2010 8:00 PM
    Edited by: Linwood Doty on Oct 4, 2010 8:01 PM

    Hello Linwood,
    Neither ECC (or BW) uses full-text indexing, so you can disable it.
    You just need to enable it if you have this special requeriment.
    Regards,
    Eduardo

  • How do I put text into an Edge File that clients can edit easily afterwards

    Hi
    Can anyone explain how I can put text into an edge file (styled with google fonts) and make it so that clients can access the text and update the text as they require?
    Previous suggestion was dynamically loading a .txt file - any instructions would be most appreciated.
    Thanks.

    Hi Resdesign!
    Your code is very useful to learn how to use Json in Adobe Edge Animate!
    But I have a question: why you use ( i ) as argument of the function UpdateInfo and when you recall it you use ( index )?
    $.getJSON('slides.json', function(data){
              //for(var i=0; i<data.length; i++){
    function updateInfo(i){
                        sym.$("photo").css({"background-image": "url('"+data[i].image+"')"});
                        sym.$("pillar").html(data[i].pillar);
                        sym.$("what").html(data[i].what);
                        // position
              index = -1;
              sym.$("btn").click(function(){
              index++;
                        if (index>=5){
                                  index = 0;
              updateInfo(index);
    Many thanks for your attention!
    Davide

  • How to link a full text index with catalog in a PDF file ?

    Good morning and thank you for your help.
    I already create some PDF files on a folder (with hypertext links between us) and I use the command "Tools\Document processing\Full Text Index with Catalog" to create an index; at this time everything works properly.
    Now I want to link this Index to my first PDF file in order to use automatically this index on an advance search in this file.
    I hope that someone may answer me!
    Thank you.

    Now I want to link this Index to my first PDF file in order to use automatically this index on an advance search in this file.
    In the properties of the document:

  • How to Enable Full text search in UCM with Oracle 10g

    Hi,
    Can you please guide me on how to enable full text search in UCM after I have installed it. My database is Oracle 10g. It would be great if you could guide me through the steps since I am very new to this product.
    Regards
    Ashish

    Hi
    Are you sure that your indexer is finishing without any errors? Check activeindex.hda under \search directory to see what is the variable set for activeindex variable? If Oracle Text is the indexer search enabled then the variable activeindex should either OTS1 or OTS2. If anything else then you have indexer problems that is not indexing documents.
    Check the CS log file to see if indexer errors are shown there. If yes, then put it over here so that we can analyse it.
    Hope it helps
    Thanks
    Srinath

  • Full Text Indexing for Arabic using NVARCHAR and NCLOB?

    We have an Arabic database that uses UTF-16 and NVARCHAR and NCLOB column types.
    The full text indexing of Oracle gives an error saying that it does not support these column types.
    Can you please help by telling us what is the workaround for this?

    The only workarounds are:
    1) Store data in VARCHAR2 and CLOB in a AL32UTF8 database, or
    2) Use BLOB for document storage - unfortunately, this may be expensive for a lot of short text
    -- Sergiusz

  • Broken Full Text Index

    I just created a portfolio with 78 pdf documents. Some 4000 pages. The portfolio was created to give away for free on CD's. The index was built on the portfolio. The index was imbedded into the portfolio. When opened in Reader, the Full Text Index works fine on the build computer before the creating the CD master. The Index partially works on the CD. The part that does not work is searching itself. The search only takes 6 seconds with 16497 instances in 75 documents. (But the link to the portfolio page is broken. The names of the document found are displayed properly, but the Error Message-'There was an error retrieving text' is displayed. The cd's are made (Since everything else is working and the CD is at the duplicators) I have to go with what I have for this round. I am looking for a fix for the next batch and I am looking for a temporary fix to distribute through dropbox where I can download a new Full Text Index, an updated portfolio or both to those who received the CD at the conference. I thought I had a fix by going to 'Select Index...' and removing the indexes present and adding the correct index. That worked on the build computer but does not work other computers. This is what I tried.
    1. Copy the following files into a new folder on your computer. (You may name it.)
    Kodak_Catalogues.pdf
    Full_Text_Index.pdx
    Full_Text_Index (folder)
    (You may copy the other files and folders but you do not need them.)
    2. Right Click 'Full_Text_Index.pdx' open with Adobe Reader
    3. Select 'Show More Options' at the bottom of the box
    4. Under 'Look in:" at the top of the box choose; 'Select Index…'
    5. Remove all index choices that are checked in black. Remove all indexes that are grayed out. With the 'Remove' button.
    6. Select the 'Add' button.
    Navigate to the folder that the files are located in and select the file:
    Full_Text_Index.pdx
    7. Select the 'Open' button
    8. Select the 'OK' button
    9. Under 'Where would you like to search?'
    Select the radio button: 'In the index named Full_Text_Index.pdx'
    10. Type in a keyword, I used 'Kodak' for my test.
    11. Results: should be 75 documents with 16497 instances.
    12. On my computer the search takes 6 seconds.
    13. Feel free to contact me at:  if I can be of further assistance.
    14. I apologize for not knowing about this issue.
    This is my first portfolio. Because everything worked perfectly on the build, I missed this one. Thanks for any information that might help me solve the issue.

    Hello Dileep,
    How have you Setup "Track changes" for the full text catalog, is it set to "Automatically" or "manually" ?
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for

  • Bulk edit media kind not working

    Hello, Last night I bulk edited my library from media kind "music" to "voice memo." This worked fine. Everything is now set to voice memo. However, I am now trying to edit selected albums back to music, and this does NOT work. But it DOES work if I s

  • New tab now a grid

    Another curious change in v29: when I open a new tab, I see a 3 by 3 grid of lightly dashed rectangles. It isn't an inconvenience, I suppose, but what's that about?

  • User exit or Badi For MBRL

    Hi all, I am using a y program which call MBRL t-code in back ground . I need  to restrict the t-code MBRL to all user and allow only to use Y program. I can not remove the authorization for MBRL. I found user exit for MBRL but it is in saving time.

  • EAR Deployment

    Is it possible to create the JDBC Connection Pool inside the EAR weblogic-application.xml file. Some configaration example please? Thanks

  • 7.5.2 Update causing skipping when playing via AirPlay

    Since the iOS 4 iPad update, I have been streaming music from my iPad to my AirPort Express from Pandora. There have been no issues with this until I performed the 7.5.2 update to my AX. Now, I am experiencing pretty consistent pauses/skips when tryi