• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "FullText Search - SQL Server"

Collapse

  • TheFaQQer
    replied
    Originally posted by suityou01 View Post
    Ah yes, except wild cards did not work.
    Really? Because you said earlier that wildcards did work:

    Originally posted by suityou01 View Post
    I did actually mean
    Code:
    Like '%attrn'
    works

    Leave a comment:


  • suityou01
    replied
    Originally posted by TheFaQQer View Post
    Are you aware that you need wildcard when searching for something that's not a stem?

    Since Att isn't a stem of Attrn, you need to use a wildcard.
    Ah yes, except wild cards did not work.

    Leave a comment:


  • TheFaQQer
    replied
    Originally posted by suityou01 View Post
    Sorry LM, no you didn't. Others did.

    I have read your link and understand what you are telling me, finally.
    Are you aware that you need wildcard when searching for something that's not a stem?

    Since Att isn't a stem of Attrn, you need to use a wildcard.

    Leave a comment:


  • fannyadams
    replied
    Can you post the exact syntax you used for the wildcard? It should work. Did you have the double layer of quotes?

    https://blogs.msdn.microsoft.com/sql...l-text-search/

    Leave a comment:


  • LondonManc
    replied
    Originally posted by suityou01 View Post
    Sorry LM, no you didn't. Others did.

    I have read your link and understand what you are telling me, finally.


    Finally.

    Leave a comment:


  • MrMarkyMark
    replied
    Originally posted by suityou01 View Post
    Sorry LM, no you didn't. Others did.

    I have read your link and understand what you are telling me, finally.

    Penny....Finally.........Drops


    Leave a comment:


  • suityou01
    replied
    Originally posted by TheFaQQer View Post
    Because you either need a "*" wildcard or to include something extra like FORMSOF, INFLECTIONAL and / or FREETEXT rather than just CONTAINS.
    Originally posted by fannyadams View Post
    That's the opposite of what you said

    What's syntax are you using for your wildcard match?
    Originally posted by LondonManc View Post
    I've not recommended the bloody wildcard.

    I'm telling you that Attrn is not a natural stem from Att so you won't get a result, which is the correct behaviour.

    To get Attrn in your result set, you'd have to use like %Att% in your where clause instead.
    Sorry LM, no you didn't. Others did.

    I have read your link and understand what you are telling me, finally.

    Leave a comment:


  • LondonManc
    replied
    Originally posted by suityou01 View Post
    Yes but the wildcard doesn't work. I'm sure I mentioned this before.
    I've not recommended the bloody wildcard.

    I'm telling you that Attrn is not a natural stem from Att so you won't get a result, which is the correct behaviour.

    To get Attrn in your result set, you'd have to use like %Att% in your where clause instead.

    Leave a comment:


  • suityou01
    replied
    Originally posted by LondonManc View Post
    If he reads the blog post that I linked to, rather than waiting to be spoonfed the answer, he'd know that by now.
    Yes but the wildcard doesn't work. I'm sure I mentioned this before.

    Leave a comment:


  • LondonManc
    replied
    Originally posted by LondonManc View Post
    It's to do with stemming.

    Grab a coffee and have a read through this:
    https://blogs.msdn.microsoft.com/sql...sing-contains/
    Originally posted by BigRed View Post
    I've not touched fts for years, but it is basically looking for words, without wildcards it works off the stems of whole words, so "story" or "stories" are the same, as are tenses such as "going" and "gone". This used to show up in Sharepoint, where searches for, say, product IDs unless fully qualified failed miserably.
    If he reads the blog post that I linked to, rather than waiting to be spoonfed the answer, he'd know that by now.

    Leave a comment:


  • BigRed
    replied
    I've not touched fts for years, but it is basically looking for words, without wildcards it works off the stems of whole words, so "story" or "stories" are the same, as are tenses such as "going" and "gone". This used to show up in Sharepoint, where searches for, say, product IDs unless fully qualified failed miserably.
    Last edited by BigRed; 28 March 2017, 23:06.

    Leave a comment:


  • fannyadams
    replied
    Originally posted by suityou01 View Post
    Not getting it.

    How is "Exactlymatchinstri' a word, but 'Exactlymatchingstring' isn't?
    That's the opposite of what you said

    What's syntax are you using for your wildcard match?


    Originally posted by suityou01 View Post
    And no, sadly a wildcard doesn't make any difference. Still nada.

    Thanks for trying chaps.

    Edit : I just got this to work.

    SELECT * FROM MyTable WHERE Contains(MyField,'Exactlymatchingstring')

    This works. But

    SELECT * FROM MyTable WHERE Contains(MyField,'Exactlymatchi')

    does not work.

    Leave a comment:


  • MrMarkyMark
    replied
    Originally posted by suityou01 View Post
    And no, sadly a wildcard doesn't make any difference. Still nada.

    Thanks for trying chaps.

    Edit : I just got this to work.

    SELECT * FROM MyTable WHERE Contains(MyField,'Exactlymatchingstring')

    This works. But

    SELECT * FROM MyTable WHERE Contains(MyField,'Exactlymatchi')

    does not work.
    Worth as much as you have paid for it.

    I trust this is for some hobby project and no one is paying for your SQL Server "expertise"

    Leave a comment:


  • TheFaQQer
    replied
    Originally posted by suityou01 View Post
    Not getting it.

    How is "Exactlymatchinstri' a word, but 'Exactlymatchingstring' isn't?
    Because you either need a "*" wildcard or to include something extra like FORMSOF, INFLECTIONAL and / or FREETEXT rather than just CONTAINS.

    Leave a comment:


  • LondonManc
    replied
    Originally posted by suityou01 View Post
    Not getting it.

    How is "Exactlymatchinstri' a word, but 'Exactlymatchingstring' isn't?
    It's to do with stemming.

    Grab a coffee and have a read through this:
    https://blogs.msdn.microsoft.com/sql...sing-contains/

    Leave a comment:

Working...
X