Search Module


(Loggedon Christy) #1

Hi, I was implementing a search module. It works fine but there is a bit of problem for example I inputted the word "modem" but there are no results because there is no modem in the metadata field. But the word "modems" is available. I want to have this kind of execution where you can search not the full word. hope you can help me. Anyway thanks for the help.


(Greg Sherwood) #2

If the metadata field is just text, the default settings will find modems. If it is a select field, it needs to be an exact match.


(Adam Fisher) #3

Hi guys. I have a (slightly) related question. We have created a metadata field to power custom A-Z functionality, but I'm having trouble getting the search page to return any results. I understand that when Matrix indexes content it strips the blacklist terms and words shorter than the specified number of characters, but I'm not sure if this applies to metadata.

The field contains a single upercase letter, eg A or F and (obviously) I wanted to be able to enter A into the search box (and subsequently the URL query string) and have it list all the assets with a metadata value of A. I'm pretty sure the search asset is set up correctly and when I enable an empty query it returns all the assets exactly as expected, but it returns no assets for and metadata value. (The asset listing I created alongside it that uses grouping by metadata values works like a charm).

Any ideas?

Thanks!

(Greg Sherwood) #4

It applies to all indexed content, which is most likely why you are getting no results.


(Avi Miller) #5

To fix this, add each letter to the White List box, so that Matrix will index those individual letters. I also do this for state abbreviations (ACT, NSW, VIC, etc) and other TLAs that I need indexed.

(Adam Fisher) #6

Thanks, Avi. I'll give that a go. I'll need to rebuild the index as well, I presume?

Just to confirm, you don't think adding each of the single letters to the whitelist won't
a) slow down the search too much
B) pollute search results

(We have "enable contains search" set to No in the search manager, if that helps)

Also, are the black/white/noise lists case sensitive?

Thanks guys.

(Avi Miller) #7

Yes, you'll have to reindex.

[quote]Just to confirm, you don't think adding each of the single letters to the whitelist won't
a) slow down the search too much
B) pollute search results

Also, are the black/white/noise lists case sensitive?[/quote]

Shouldn't pollute too much, though it'd depending on your hardware and other factors to determine how much the search would slow down -- you will be adding more rows to the search index, after all. I believe the index is not case sensitive as all terms are lower-cased on index and search time.

(Adam Fisher) #8

[quote]Yes, you'll have to reindex.
Shouldn't pollute too much, though it'd depending on your hardware and other factors to determine how much the search would slow down – you will be adding more rows to the search index, after all. I believe the index is not case sensitive as all terms are lower-cased on index and search time.[/quote]



Thanks for all your help, guys. It's working beautifully now!