Search wild cards?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ShackMaster
    Senior Member
    • Apr 2006
    • 520
    • 3.5.x

    Search wild cards?

    Is there a place where I can find the symbols for search wild cards and what each does for vB 3.6 ???

    I'd like to write up something for our members so they know what to use.

    I found this on another board that is running vB 3.0.6 ...

    Advanced Usage Help
    • apple banana -- Find posts that contain at least one of these words
    • +apple +juice -- Find posts with both words
    • +apple -juice -- Find posts with 'apple' but not 'juice'
    • apple* -- Find posts with 'apple' and/or 'applesauce'
    • "Some Words" -- Find posts with the phrase 'some words of wisdom', 'some words' but not 'some noise words'


    Will these work on vB 3.6 and do I need to enable "fulltext boolean" search for them to work?

    Thanks!
    http://www.hometheatershack.com/forums
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    I will try to get a complete list for you. I am asking the others.

    Comment

    • ShackMaster
      Senior Member
      • Apr 2006
      • 520
      • 3.5.x

      #3
      Thanks... I tried a few of those in vB search and a few seemed to work but a few didn't. I assume those are probably only good for "fulltext" search or maybe only valid for older versions of vB.
      http://www.hometheatershack.com/forums

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        I found a good post:

        Originally posted by Wayne Luke
        According to MySQL. Don't think there is a syntax for natural language search and not sure what the vBulletin search does since I can't understand the regular expressions.

        The boolean full-text search capability supports the following operators:
        • +
          A leading plus sign indicates that this word must be present in each row that is returned.
        • -
          A leading minus sign indicates that this word must not be present in any of the rows that are returned.
        • (no operator)
          By default (when neither + nor - is specified) the word is optional, but the rows that contain it are rated higher. This mimics the behavior of MATCH() ... AGAINST() without the IN BOOLEAN MODE modifier.
        • > <
          These two operators are used to change a word's contribution to the relevance value that is assigned to a row. The > operator increases the contribution and the < operator decreases it. See the example below.
        • ( )
          Parentheses are used to group words into subexpressions. Parenthesized groups can be nested.
        • ~
          A leading tilde acts as a negation operator, causing the word's contribution to the row's relevance to be negative. This is useful for marking “noise” words. A row containing such a word is rated lower than others, but is not excluded altogether, as it would be with the - operator.
        • *
          The asterisk serves as the truncation operator. Unlike the other operators, it should be appended to the word to be affected.
        • "
          A phrase that is enclosed within double quote (‘"’) characters matches only rows that contain the phrase literally, as it was typed. The full-text engine splits the phrase into words, performs a search in the FULLTEXT index for the words. The engine then performs a substring search for the phrase in the records that are found, so the match must include non-word characters in the phrase. For example, "test phrase" does not match "test, phrase".
          If the phrase contains no words that are in the index, the result is empty. For example, if all words are either stopwords or shorter than the minimum length of indexed words, the result is empty.
        The following examples demonstrate some search strings that use boolean full-text operators:
        • 'apple banana'
          Find rows that contain at least one of the two words.
        • '+apple +juice'
          Find rows that contain both words.
        • '+apple macintosh'
          Find rows that contain the word “apple”, but rank rows higher if they also contain “macintosh”.
        • '+apple -macintosh'
          Find rows that contain the word “apple” but not “macintosh”.
        • '+apple +(>turnover <strudel)'
          Find rows that contain the words “apple” and “turnover”, or “apple” and “strudel” (in any order), but rank “apple turnover” higher than “apple strudel”.
        • 'apple*'
          Find rows that contain words such as “apple”, “apples”, “applesauce”, or “applet”.
        • '"some words"'
          Find rows that contain the exact phrase “some words” (for example, rows that contain “some words of wisdom” but not “some noise words”). Note that the ‘"’ characters that surround the phrase are operator characters that delimit the phrase. They are not the quotes that surround the search string itself.
        Some words are ignored in full-text searches:
        • Any word that is too short is ignored. The default minimum length of words that are found by full-text searches is four characters.
        • Words in the stopword list are ignored. A stopword is a word such as “the” or “some” that is so common that it is considered to have zero semantic value. There is a built-in stopword list, but it can be overwritten by a user-defined list.

        Comment

        • ShackMaster
          Senior Member
          • Apr 2006
          • 520
          • 3.5.x

          #5
          Looks like a good list... thanks!
          http://www.hometheatershack.com/forums

          Comment

          • ShackMaster
            Senior Member
            • Apr 2006
            • 520
            • 3.5.x

            #6
            Is there a list for the vB search type? It would seem if vB offered a search, they would have a list for their search type.... no?

            I need a 3 character search limit and our host ain't willing to oblige being they would have to tune the entire server to the same and it would be too much of a resource hog. I may have to go back to the vB search type to get the 3 character limit, but I'd like to know the wild cards too.
            http://www.hometheatershack.com/forums

            Comment

            • feldon23
              Senior Member
              • Nov 2001
              • 11291
              • 3.7.x

              #7
              I don't think vB search has wild cards. I know it doesn't have phrase searching.

              Comment

              • COBRAws
                Member
                • May 2005
                • 65
                • 3.8.x

                #8
                Originally posted by feldon23
                I don't think vB search has wild cards. I know it doesn't have phrase searching.
                Sorry for bumping, but you are wrong, please refeer the following statement:

                "
                A phrase that is enclosed within double quote (‘"’) characters matches only rows that contain the phrase literally, as it was typed. The full-text engine splits the phrase into words, performs a search in the FULLTEXT index for the words. The engine then performs a substring search for the phrase in the records that are found, so the match must include non-word characters in the phrase. For example, "test phrase" does not match "test, phrase".
                If the phrase contains no words that are in the index, the result is empty. For example, if all words are either stopwords or shorter than the minimum length of indexed words, the result is empty.

                Comment

                Related Topics

                Collapse

                Working...