Note that there are some explanatory texts on larger screens.

plurals
  1. POConfusion on mysql full text search
    primarykey
    data
    text
    <p>I m having little confusion using MySQL fulltext. I have database whose charset is set to <code>utf-8</code> and collation set to <code>utf8_unicode_ci</code></p> <p>I have following flow of searching products. User chooses from the flow below to search any product</p> <ul> <li>user selects product_type, enum field with value consumable/unconsumable.</li> <li>Then selects product_nature, enum 0=>finished 1- unfinished.</li> <li>then user selects location, varchar User may select multiple location.</li> <li>then user specifies price ranges and so on (about 5 more selection) In search page the only thing users types is, location, price ranges. Rest all they select from combo.</li> </ul> <p>My confusion is.</p> <ol> <li>Does my database supports FULL Text Search?</li> <li>What are the fields I need to index for enabling full text search.</li> <li>As full text is supported in <code>varchar</code> and <code>text</code> datatype field only. How to get relevant results if many fields user selects for filter is in <code>enum</code></li> <li>I want to show exact match at top and nearly matching products depending upon the filters user selects like I described above. Does order by fulltext relevancy work here because there are many fields which are of type <code>enum</code>.</li> </ol> <p><strong>Edit</strong> For better understand for example</p> <p>This search is for those specially who knows what to buy but doesn't know anything else. Like I need a Mobile PHone, but I don't know anything else, I just select its type(Wifi/without wifi) from combo, I then select camera (with/without), I then select other few features like this. I then specify price range I can afford, I then want phone available in store in particular location. For this I type <code>location A, location B, location C</code>. I want results based on either of these location. And I want to order results according to the nearest match of the search parameter specified. Exact match to nearest match, then least nearest match. Hope this helps</p> <p>Can anybody throw some light on this?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload