Topic: Support/Comments for AjaxSearch  (Read 154397 times)

Pages: 1 ... 28 29 [30]   Go Down

#581: 29-Apr-2008, 11:56 AM

Administrator

smashingred
Posts: 1,422

Jay Gilmore

WWW
@coroico,
 I have found that exactly that AS only finds HTML in SRs when there are floating HTML elements with no close. Once they are tracked down it is corrected. The can be caused by comments though where sometimes the stipper gets caught on an open element. Don't remember specific case but know that I had a problem on a site to be fixed by combing the code.

#582: 29-Apr-2008, 07:25 PM

phool
Posts: 1

Hi, Im new to Modx, and am having a bit of difficulty with the AjaxSearch plugin.

I have a search page that includes an AjaxSearch form.  I would like to also have a search box on every other page in left panel that when filled in posts the results on the search page.

Please can you advise me.

Thanks
Paul

#583: 2-May-2008, 07:02 AM


pixsaul
Posts: 40

Hi Guys,

I've got a Template variable field called search tags, where the user can enter any words that match the relevant product, delimited by comma. Works great apart from one sticking point.

For example, if you type in "fish" it brings back any product that has "fish" in the TV, but it also brings back any product that has the string of those four characters, so we end up getting Laurence fishbourne in there too. My php isn't awesome, but is there anyway I can tell the search to delimit the search tags TV by spaces, or a comma or whatever? Or should I use a different TV format (would a check box style TV still just match strings, rather than whole words?)

#584: 2-May-2008, 09:40 AM

smg6511
Posts: 81

@phool: It sounds as if you're wanting to use the search in non-ajax mode and, as such, here's what you'd do at minimum:

In your template, wherever you'd like the search form to be shown you'd use this call:
Code:
[!AjaxSearch? &ajaxSearch=`0` &AS_showResults=`0` &AS_landing=`id#`!]
Note: replace id# with your search results page id

In your search results page, you'd put this call in your content area:
Code:
[!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0`!]

@pixillionsaul: coroico will be the authority on this but, I believe the only way would be to set the advanced search tag to "exactphrase"—that is, add this to your call on the results page: &advSearch=`exactphrase`
------
Server: Apple Mac Mini, ModX Evo 1.0, Apache 2.2.11, PHP 5.3, Mysql 5.0.84.
Site Management: Firefox 3.5.

#585: 5-May-2008, 04:37 AM


rossco
Posts: 930

WWW
I'm using the latest version of AS and I am using the highlight plugin as well. 

I have a page that is hidden from the menu and not searchable but it's still showing up in the ajax search ever using &hidemenu=`0`

What else am I missing from the snippet to not search hidden pages? 

Thanks

#586: 5-May-2008, 06:40 AM

pcpedia
Posts: 19

Is this possible to use AjaxSearch with set Suffix for friendly URLs? When I set my suffix for .html AjaxSearch doesn't work (I see only 404 error).

http://www.pcpedia.pl/ - AjaxSearch on right sidebar

What part of code should I change?

Thanks
« Last Edit: 5-May-2008, 06:53 AM by adik »

#587: 6-May-2008, 03:32 AM


pixsaul
Posts: 40

Thanks for your reply, but &advSearch=`exactphrase` doesn't seem to work, it still returns fishbourne if I enter fish. I think I read that TV's aren't split into separate words, (can't find or remember where I read it though), and are just dealt with as one long string, so is there another field I could use that would separate, or, like I mentioned before, how would I go about telling it to delimit my TV field by a comma. Cheers.

#588: 6-May-2008, 06:48 AM

Moderator

coroico
Posts: 1,213

WWW
@pixillionsaul

        - exactphrase : provides the documents which contain the exact phrase

"Phrase" means at least two words.  With one search word "exactphrase" = "oneword" = "allwords"

Ajaxsearch use the MySQL mechanism : LIKE so when you search "fish", it could be find "fishbourne". More technical information here
If you would like a exactword mechanism, look at this post for a similar request and possible (but not supported) implementation.
« Last Edit: 6-May-2008, 06:50 AM by coroico »
              AjaxSearch 1.8.4                                                          AnythingRating 1.0                                       ModxLinks repository                      
Download       Documentation                                                   Download            Documentation                                  
Demo site       Bugs & Features     Support                                Demo site            Support                                  CssSwitcher   Support     Download

#589: 6-May-2008, 06:59 AM

Moderator

coroico
Posts: 1,213

WWW
@adik
Quote
Is this possible to use AjaxSearch with set Suffix for friendly URLs? When I set my suffix for .html AjaxSearch doesn't work (I see only 404 error).
As I have never used suffix for fiendly URL, I can't help you and I haven't enought time to investigate. Are your friendly url run without AS ?

Quote
UTF-8 doesn't work.
look at http://logrus.sytes.net/~kozy/ for an interesting use of AS with polish-utf8 Mysql charset
              AjaxSearch 1.8.4                                                          AnythingRating 1.0                                       ModxLinks repository                      
Download       Documentation                                                   Download            Documentation                                  
Demo site       Bugs & Features     Support                                Demo site            Support                                  CssSwitcher   Support     Download

#590: 6-May-2008, 07:08 AM

pcpedia
Posts: 19

@adik
As I have never used suffix for fiendly URL, I can't help you and I haven't enought time to investigate. Are your friendly url run without AS ?

Yes, without suffix ".html" everything works fine. I don't know why AjaxSearch doesn't work with suffix.  Sad

Quote
look at http://logrus.sytes.net/~kozy/ for an interesting use of AS with polish-utf8 Mysql charset

Thanks.

#591: 6-May-2008, 07:38 AM

pcpedia
Posts: 19

@coroico

Now I'm testing v1.5 (v1.6 in the snippet). It is a default version in modx 0.9.6.1p2 - AjaxSearch with set suffix ".html" works correct...

So a problem is in versions: 1.7.1 and 1.7.0.2.
« Last Edit: 6-May-2008, 07:43 AM by adik »

#592: 6-May-2008, 07:46 AM

Moderator

coroico
Posts: 1,213

WWW
@adik
On http://www.modx.wangba.fr, i use friendly url with suffix .html

e.g: http://www.modx.wangba.fr/ajaxsearch-home.html or http://www.modx.wangba.fr/base171.html
              AjaxSearch 1.8.4                                                          AnythingRating 1.0                                       ModxLinks repository                      
Download       Documentation                                                   Download            Documentation                                  
Demo site       Bugs & Features     Support                                Demo site            Support                                  CssSwitcher   Support     Download

#593: 6-May-2008, 08:28 AM

pcpedia
Posts: 19

@coroico

I try use AjaxSearch without parameter &AS_landing because I have snippet on the rightsidebar.

I don't want to redirect to any document id when search results are displayed.

When I use parameter &AS_landing suffix '.html' works correct. (so always I'm redirect to main page but I dont' want this)

Ok, problem is solved.

sorry for english.
« Last Edit: 6-May-2008, 08:34 AM by adik »

#594: 6-May-2008, 09:20 AM

Moderator

coroico
Posts: 1,213

WWW
@rossco

Quote
I have a page that is hidden from the menu and not searchable but it's still showing up in the ajax search ever using &hidemenu=`0`

What else am I missing from the snippet to not search hidden pages? 
Look at the following test and try to search "constitution". Two pages are output as results but not the page http://www.modx.wangba.fr/education-right-en.html
Which is correct as I have set this page not searcheable and invisible from menu (you can't see it in the english document list)

Which AS version do you use ? 1.7.1 I hope  Wink
              AjaxSearch 1.8.4                                                          AnythingRating 1.0                                       ModxLinks repository                      
Download       Documentation                                                   Download            Documentation                                  
Demo site       Bugs & Features     Support                                Demo site            Support                                  CssSwitcher   Support     Download

#595: 6-May-2008, 03:49 PM


rossco
Posts: 930

WWW
I'm using this call in my pages

[!AjaxSearch?  &ajaxSearch=`1`  &showMoreResults=`1` &moreResultsPage=`72` &highlightResult=`1` &hideMenu=`0` !]

The search is picking up a document that has no template, a page title and only has a line of text.  It's set to not searchable and hide from menu.  I've tried putting a snippet in the blank document 

[!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0`!]

And it's still found in the search?  Well the title shows up and is clickable. 

@rossco

Quote
I have a page that is hidden from the menu and not searchable but it's still showing up in the ajax search ever using &hidemenu=`0`

What else am I missing from the snippet to not search hidden pages? 
Look at the following test and try to search "constitution". Two pages are output as results but not the page http://www.modx.wangba.fr/education-right-en.html
Which is correct as I have set this page not searcheable and invisible from menu (you can't see it in the english document list)

Which AS version do you use ? 1.7.1 I hope  Wink

#596: 10-Jun-2008, 06:20 PM


cbaone
Posts: 563

Utah Web Design

WWW
Great idea ZAP, I'll do that now.
The MODx has you...
Utah Web Design

#597: 11-Jun-2008, 06:59 PM


insert_nick
Posts: 105

WWW
I do have friendly URLs activated, with use friendly alias path activated.
AjaxSearch 1.7.1.

I have a "test" node under parent node (0), with content:
Code:
[!AjaxSearch!]
Calling the page:
Code:
http://mydomain.com/test
...the AjaxSearch works good, I can see the results and click them.

But, if I move the "test" node under another node - say - "home" under "en", it does not work!
That is, calling the page:
Code:
http://mydomain.com/en/home/test
...the AjaxSearch form is showed, I type something in, press the submit search button, and the searching and cross gifs are shown, but nothing else, and nothing is retrieved and showed.

What should I correct/do in order to have it working in my environment with friendly urls activated

#598: 13-Jun-2008, 06:53 AM

Administrator

zi
MODx Special Forces /
Posts: 3,555

May Peace Be On You

WWW
Hi guys, this topic has grown too large, we got dedicated forums for AjaxSearch http://modxcms.com/forums/index.php/board,320.0.html .... From now on, please use the forum and create new topics for your issues.

I will be closing this topic soon too Tongue...

#599: 13-Jun-2008, 07:15 AM

Foundation

rthrash
Posts: 11,348

WWW
Went ahead and closed it indeed ... 40+ pages is a bit unwieldy!
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
Pages: 1 ... 28 29 [30]   Go Up
0 Members and 1 Guest are viewing this topic.