Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2021-07-11 08:38:42

etc
Developer
Registered: 2010-11-11
Posts: 5,677
Website GitHub

Re: How to get exact search results?

colak wrote #330978:

Apart from words like and, when, that, etc. Is there a list of those too common terms?

Hi Yiannis, look at the end of this page.

This list looks configurable, but I have no experience therein.

Offline

#17 2021-07-11 08:52:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,382
Website GitHub Mastodon Twitter

Re: How to get exact search results?

etc wrote #330979:

Hi Yiannis, look at the end of this page.

This list looks configurable, but I have no experience therein.

That looks interesting. So, is this option proposed to only be for the front end and not the searches within the txp back end?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#18 2021-07-11 08:59:17

etc
Developer
Registered: 2010-11-11
Posts: 5,677
Website GitHub

Re: How to get exact search results?

colak wrote #330980:

So, is this option proposed to only be for the front end and not the searches within the txp back end?

This mode needs a FULLTEXT index, which is on (Body, Title) by default. So it would be mainly for frontend.

Offline

#19 2021-07-11 09:03:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,382
Website GitHub Mastodon Twitter

Re: How to get exact search results?

etc wrote #330981:

This mode needs a FULLTEXT index, which is on (Body, Title) by default. So it would be mainly for frontend.

👍


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#20 2021-07-12 01:35:49

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 465
Website

Re: How to get exact search results?

etc wrote #330979:

Hi Yiannis, look at the end of this page.

This list looks configurable, but I have no experience therein.

Oh, that makes it even more interesting. The words currently in the list don’t cause issues for most situations, I’d imagine.

Unless you are searching for things like, “Victoria and Albert Museum”. Although it would still find “Victoria” and “Albert Museum”, even without the “and”, right?

Last edited by Kjeld (2021-07-12 01:37:02)


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#21 2021-07-12 13:30:24

etc
Developer
Registered: 2010-11-11
Posts: 5,677
Website GitHub

Re: How to get exact search results?

Patch landed in 4.8.8, should be testable few hours later on demo site, via appending m=natural to search URLs.

Offline

#22 2021-07-12 13:57:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,382
Website GitHub Mastodon Twitter

Re: How to get exact search results?

the slogan yields no results, slogan does. Is that the expected behaviour?

ps. It appears that the results are the same in the current vanilla install.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#23 2021-07-12 14:09:42

etc
Developer
Registered: 2010-11-11
Posts: 5,677
Website GitHub

Re: How to get exact search results?

colak wrote #331000:

ps. It appears that the results are the same in the current vanilla install.

Demo site is not rebuilt yet, one more hour to wait.

Offline

#24 2021-07-12 15:55:09

etc
Developer
Registered: 2010-11-11
Posts: 5,677
Website GitHub

Re: How to get exact search results?

Unfortunately, MATCH ... AGAINST does not seem to work on 4.8.8 demo server at all (whatever mode). Please test somewhere else.

Offline

#25 2021-07-12 22:54:11

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,640
Website

Re: How to get exact search results?

Kjeld wrote #330993:

Oh, that makes it even more interesting. The words currently in the list don’t cause issues for most situations, I’d imagine.

Unless you are searching for things like, “Victoria and Albert Museum”. Although it would still find “Victoria” and “Albert Museum”, even without the “and”, right?

Yes, “Victoria” and ”Albert Museum” should return some valid and relevant results, I would think.

But a question. That MySQL word list referenced above by Oleg is English specific. It is not clear if similar lists are included for other languages in the core MySQL code. Additionally, how does this work for multi-lingual sites ?


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#26 2021-07-13 05:25:25

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 465
Website

Re: How to get exact search results?

What a pity.

Incidentally, on the demo site I get the “Search results : 1 article found matching your search request” message, but no article link in the search results…

I checked the admin and the search_display form does include an article tag: <txp:article class="article-list" wraptag="ul" />.

I created a test article and did another search, but still got empty search results.

Is this a known issue in 4.8.8?


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#27 2021-07-13 05:27:55

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,382
Website GitHub Mastodon Twitter

Re: How to get exact search results?

etc wrote #331003:

Unfortunately, MATCH ... AGAINST does not seem to work on 4.8.8 demo server at all (whatever mode). Please test somewhere else.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#28 2021-07-13 05:28:13

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 465
Website

Re: How to get exact search results?

phiw13 wrote #331005:

Yes, “Victoria” and ”Albert Museum” should return some valid and relevant results, I would think.

But a question. That MySQL word list referenced above by Oleg is English specific. It is not clear if similar lists are included for other languages in the core MySQL code. Additionally, how does this work for multi-lingual sites ?

Thanks for the feedback.

Good point about other languages!


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#29 2021-07-13 05:42:48

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 327
Website GitHub GitLab Mastodon Twitter

Re: How to get exact search results?

Kjeld wrote #331006:

“Search results : 1 article found matching your search request” message, but no article link in the search results…

Please look at a source of the page for <a> link with your URL and an empty text, though.

Offline

#30 2021-07-13 09:05:58

etc
Developer
Registered: 2010-11-11
Posts: 5,677
Website GitHub

Re: How to get exact search results?

Kjeld wrote #331006:

Incidentally, on the demo site I get the “Search results : 1 article found matching your search request” message, but no article link in the search results…

Homonyms… Thanks for the report.

Offline

Board footer

Powered by FluxBB