Jump to content

Search and Numbers


Mont
 Share

Recommended Posts

I am having issues with the search function when searching by numbers.  I need to search items like:

  1. 18-29-201
  2. 201
  3. 201.1.2

I am using admin to edit /wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module and have added the fields to search and also tried changing the operators to =Equals and ~= Contains all the words with no luck or success. 

Am I in the right area?  Cache? 

post-2755-0-49709700-1413486719_thumb.pn

Link to comment
Share on other sites

Looking at the search.php

// Search the title and body fields for our query text.
	// Limit the results to 50 pages. 
	$selector = "title|body~=$q, limit=50"; 

changing

~= to *=    no luck

to just =    no luck

%=      Yeay it works!  Woooooo Hooooo. 

Thanks for the idea!!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...