Advanced Search

I'm completely confused again.

 

I've already done the little trick with the "?search_mode=adv" to get my advanced form to show up.  I added a bunch of fields to the profiles (smoking, drinking, religion, politics, etc.) and likewise to the advanced search.  At a cursory glance, I'd thought it was working, but far from it.

 

For example, I was trying to do a test where I search for all single females who speak a given language - Icelandic.

 

There is one member on my site who speaks it.  But when I run the advanced search, it returns all the single females in order of joining.  The woman who speaks Icelandic is not even at the top.

 

So, I thought maybe it was being too detailed and it needed a complete match.  So I listed all the languages she spoke in my search query (French, German, Icelandic, English, etc.)  but again, I get the list of all single females in order of joining.

 

I've tried turning on the "Match With Field" option of Language set to Language and adjusting the "Match Percent."  I've tried values like 10, 100, 97.  I even went to the extreme of making it the only field with Matching turned on, and put it on 100%, so it should disregard gender and everything else perhaps.

 

None of these changes appear to affect the percent match graphs in the member list readout either.

 

So I'm really confused on a number of fronts.  Does Advanced Search/Search work in Dolphin 6.1?

Can it work with fields you add?  (I see that the fields and values I added, like Language, are getting passed in the URL get data back to the script.  It appears they should be collected in the collectSearchRequestParams function in BxDolProfileFields.)

How exactly do the "Match Percents" work?  Are they only for Cupid e-mails?  Are they for the graphs in the member results lists?  Do they have any affect on searches?

What am I doing wrong?

 

Quote · 6 Nov 2009

Here is how I did it,

Make a new file name it search_adv.php

Copy everything from search.php and past it in to the new file search_adv.php

Find this code at the top of the file search_adv.php:

// get search mode
if( $_REQUEST['search_mode'] )
$sSearchMode = $_REQUEST['search_mode'];
else
$sSearchMode = 'simple';

switch( $_REQUEST['search_mode'] ) {
case 'quick':
$iPFArea = 10;
$_page['header_text'] = $sPageHeader = _t( '_Quick Search' );
break;

case 'adv':
$iPFArea = 11;
$_page['header_text'] = $sPageHeader = _t( '_Advanced Search' );
break;

default:
$iPFArea = 9;
$sSearchMode = 'simple';
$_page['header_text'] = $sPageHeader = _t( '_Simple Search' );
}

Change it to this:

// get search mode
if( $_REQUEST['search_mode'] )
$sSearchMode = $_REQUEST['search_mode'];
else
$sSearchMode = 'adv';

switch( $_REQUEST['search_mode'] ) {
case 'quick':
$iPFArea = 10;
$_page['header_text'] = $sPageHeader = _t( '_Quick Search' );
break;

case 'simple':
$iPFArea = 9;
$_page['header_text'] = $sPageHeader = _t( '_Simple Search' );
break;

default:
$iPFArea = 11;
$sSearchMode = 'adv';
$_page['header_text'] = $sPageHeader = _t( '_Advanced Search' );
}

SAVE file

Go to Admin panel/Builders/Navigation Menu Builder

Click on item Members and add URL search_adv.php inside the URL box, shall be like this:

browse.php|search.php|search_adv.php

SAVE it

Drag and drop a NEW ITEM below Members (below Search Members)
Click on the NEW ITEM and write as below:

System Name: Advanced Search
Language Key: _Advanced Search
Default Name: Advanced Search
URL: search_adv.php
Target: Same
Visible for: Guest Member


SAVE it

(Maybe you need to add a new language key on _Advanced Search)


Done, you can try it now!!

You can now change everything from admin/Builders/Fields Builder/ => Search Profiles/Advanced
okweb

Quote · 6 Nov 2009

Thanks so much!  Laughing

 

I think I saw this post earlier in my searches, but I misunderstood, and thought it was to fix the issue where if you click the Advanced Search, it kept highlighting Search even though you were on the Advanced Search page.

 

I see now that it must be the changing of the default case to "Advanced" in the switch case that does the trick?  So otherwise the search passes the advanced data but it ends up being handled by the basic search routine which throws out all the additional custom fields that you make.

 

 

Anyway, I noticed that this works regardless of what you have "Match To" and "Percent Match" set to, so I'm still unclear on what they do.  They must affect the cupid mail?  What about the graphs showing compatibility in search/browse results?

Quote · 10 Nov 2009

Thanks so much!  Laughing

I think I saw this post earlier in my searches, but I misunderstood, and thought it was to fix the issue where if you click the Advanced Search, it kept highlighting Search even though you were on the Advanced Search page.

I see now that it must be the changing of the default case to "Advanced" in the switch case that does the trick?  So otherwise the search passes the advanced data but it ends up being handled by the basic search routine which throws out all the additional custom fields that you make.

Anyway, I noticed that this works regardless of what you have "Match To" and "Percent Match" set to, so I'm still unclear on what they do.  They must affect the cupid mail?  What about the graphs showing compatibility in search/browse results?

Matching and Cupid Mails was working fine until version 6.0.x and still here but doesn't work since v. 6.1.x...

Not sure about it have been fixed yet!!!

Quote · 11 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.