Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres
Date
Msg-id YiI2GWUWvsvOp02z@momjian.us
Whole thread Raw
In response to Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres  ("Bayer, Samuel" <sam@mitre.org>)
Responses Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres
List pgsql-general
On Fri, Mar 4, 2022 at 10:41:16AM -0500, Bayer, Samuel wrote:
> Example anecdote: the documents I'm searching come with metadata
> (e.g., title), which I'm not indexing specially (not a separate field,
> just part of the raw text of the document). When I search even for
> single terms, and look at the titles of the results, the titles in the
> Solr results more frequently contain that term than the titles in the
> Postgres results. I also FEEL like I've noticed that the problem is
> more apparent in "OR" queries; if I search for a disjunction of terms,
> the documents that contain all the terms are more likely to be high in
> the Solr rankings than in the Postgres rankings.
>
> I apologize for not being able to be more specific.

I know it is hard to quantify.  Is it possible that Postgres is treating
all the terms equally, while Solr is prioritizing terms that are earlier
in the document?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.




pgsql-general by date:

Previous
From: "Bayer, Samuel"
Date:
Subject: Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres
Next
From: Tom Lane
Date:
Subject: Re: [EXT] Re: Looking for tips on improving full-text search quality in Postgres