unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Jean Louis <bugs@gnu.support>, Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: RE: Relevance search in Emacs
Date: Sat, 5 Dec 2020 13:06:48 -0800 (PST)	[thread overview]
Message-ID: <2bd19b32-1806-44ed-9c50-fe60bca90965@default> (raw)
In-Reply-To: <courier.000000005FCBCEDF.00007E34@static.rcdrun.com>

> Chapter 12. Full Text Search
> https://www.postgresql.org/docs/current/textsearch-intro.html*TEXTSEARCH-MATCHING

That's apparently what's often called full-text search,
and which is an indexed search.  The text is indexed
ahead of time, and the index is used for search "lookup".

It means that the text itself is not searched or searchable,
at least by those means, but it could of course be mixed
with a separate pass of actual search of the text (e.g.,
for regexp matching).

Typically words are indexed, along with their positions
(so nearness etc. can be among the search criteria).

> What is good is that database PostgreSQL offers built-in relevance
> searches..
> In the manual there is little I can find related to "relevance".

Which manual?

> If somebody knows if there is some "relevance" search in Emacs built-in
> packages let me know, otherwise I will let database do the job.

"Relevance" can mean anything.  Think of how much can go
into, say, a google search: "relevance" there can include
intimate detail about you as a person, your likes, etc.

Yes, some Emacs 3rd-party libraries do provide "scoring"
of some kinds of searches.  For example, for certain kinds
of fuzzy matching a score can indicate how "closely" a
given candidate is matched by your search pattern.

You'd do well, when looking for answers here or elsewhere,
to specify the kind of relevance you have in mind.

In general, it's up to you who define the search procedure
to define the relevant (!) relevance criteria, or those
that you make available to a user.



  reply	other threads:[~2020-12-05 21:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-05 18:18 Relevance search in Emacs Jean Louis
2020-12-05 21:06 ` Drew Adams [this message]
2020-12-05 21:26   ` Jean Louis
2020-12-05 21:43     ` Drew Adams
2020-12-05 22:22 ` TRS-80
2020-12-06  4:59   ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2bd19b32-1806-44ed-9c50-fe60bca90965@default \
    --to=drew.adams@oracle.com \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).