There is a set of records in the database (type of real estate, city, district, price, etc.), separated into several tables related to each other (real estate, addresses, (apartments, plots, etc.)). It is necessary to display records similar to the selected one (you can send it in the request as a whole, or its id (primary key)). It is desirable to assign weights to the fields, and based on comparing them with the template, add values from zero to the field weight (100% match) to the records, and then sort the records from the most "heavy" to "light". Fields are text and numeric.
Is it possible to implement this task using SQL, and, if so, please tell me how or where to read more about it?
PS Records have a web-presentation (information page on a specific real estate option) with a permanent address of the format http://mysite.ru/info/id . Is it possible to use search engines (google, yandex, etc.) to find similar options? I found only an option with a simple addition of full-text search to the site, but perhaps there are more suitable tools?
поле) AGAINST ('search phrase') finds, without any explanation what, why, where and how - Dmitry Zorin