This is a discussion on Where is the custom field search function? within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; Hello all, I have custom search fields on my site set up as searchable, but the results are not as ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello all,
I have custom search fields on my site set up as searchable, but the results are not as expected. In which file can I find the function that does the searching for custom fields? If it is a large function, please send some more specific information. On the topic, I do have a secondary question: How does the system search? None of the results for custom search fields seem accurate at all. I'm sure I will be enlightened when I can look at the code. Also, as a note to developers: When you use a function outside of one file, include a comment explaining what file that you used. Editing these massively linked files is very confusing... |
|
#2
|
||||
|
||||
|
When you create an extra field (in admin) and tie it to a specific category and make it searchable it will only appear on the front end when you specify the category via the dropdown on the search page for the defined/linked extra fields to appear.
For example if I have 2 categories, one called houses and one called cars. Then I have two extra fields defined, year built is defined and linked to only the houses category and model year is defined and linked to the car category. Both are made searchable. On the user front end when I use the search feature I will be initially shown a field to enter my search criteria and a dropdown list showing me the currently defined categories. If I select cars from the category dropdown the defined/linked extra fields set as searchable will appear, in the case of this example, model year.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
#3
|
|||
|
|||
|
Sorry if my post was confusing. I am refering to the actual PHP function that does the searching. I have the fields showing up and everything, but the search is unreliable at best. I also want to implement a special searching routine for one option, and I would prefer to edit the code at the source rather than fixing it down the line.
|
|
#4
|
||||
|
||||
|
Seaching is handled in searchresults.php by using LIKE in the mysql query.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Home Page with Search | stuarthutchinson | v3.1 Questions & Support | 3 | 03-14-2007 06:49 PM |
| Ad Preview, Search Custom Fields, and more | summer | v3.1 Suggestions and Feedback | 1 | 08-09-2006 03:24 PM |
| Search Ranges on Custom Fields | philmaw | v3.1 Questions & Support | 2 | 08-03-2006 08:55 AM |
| Custom Field Sets for Different Categories | robgo777 | v3.1 Modules & Modifications | 2 | 06-11-2006 06:22 PM |
| Displaying extra field in Search and category listings | Bucketman | v3.0 Questions & Support | 3 | 04-26-2006 10:48 AM |