Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2021-07-10 17:41:23

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,629
GitHub

Re: How to get exact search results?

etc wrote #330956:

In my tests, NATURAL LANGUAGE MODE search works rather well, except for very common (English) words like ‘and’, ‘name’ and so on that it fails to match. Should we add some m="natural" search mode to core, or is it too marginal and etc_search will suffice?

+1 from me, that’d be a high quality addition.

Offline

#14 2021-07-11 08:05:28

etc
Developer
Registered: 2010-11-11
Posts: 4,517
Website GitHub

Re: How to get exact search results?

gaekwad wrote #330970:

+1 from me, that’d be a high quality addition.

Even keeping in mind that a search for too common terms in this mode would return nothing?

Offline

#15 2021-07-11 08:19:36

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,724
Website GitHub Twitter

Re: How to get exact search results?

etc wrote #330973:

Even keeping in mind that a search for too common terms in this mode would return nothing?

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


Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.

Offline

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

etc
Developer
Registered: 2010-11-11
Posts: 4,517
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: 8,724
Website GitHub 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, will this option is proposed to only be for the front end and not the searches within the txp back end?


Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
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: 4,517
Website GitHub

Re: How to get exact search results?

colak wrote #330980:

So, will this option is 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: 8,724
Website GitHub 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.org | hblack.net | State Machines | NeMe @ github
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: 379
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)


JapaneseStreets.com – Japanese street fashion (mostly txp)
Old Photos of Japan – Japan between 1860 and 1940 (100% txp)
MeijiShowa – Stock photos of Japan between 1860 and 1940 (100% txp)

Offline

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

etc
Developer
Registered: 2010-11-11
Posts: 4,517
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: 8,724
Website GitHub 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.org | hblack.net | State Machines | NeMe @ github
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: 4,517
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: 4,517
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

Board footer

Powered by FluxBB