Re: Full text search on partial URLs

Поиск
Список
Период
Сортировка
От bricklen
Тема Re: Full text search on partial URLs
Дата
Msg-id CAGrpgQ-46WBaHT=nf7ms3X2LQPiWQYYwNt3B2XT1dVUXJNKMnA@mail.gmail.com
обсуждение исходный текст
Ответ на Full text search on partial URLs  (Zev Benjamin <zev-pgsql@strangersgate.com>)
Ответы Re: Full text search on partial URLs  (Zev Benjamin <zev-pgsql@strangersgate.com>)
Список pgsql-general

On Wed, Nov 6, 2013 at 10:45 AM, Zev Benjamin <zev-pgsql@strangersgate.com> wrote:
Hi,

I have Postgres full text search set up for my application and it's been working great!  However, my users would like their searches to turn up parts of URLs.  For example, they would like a search for "foobar" to turn up a document that contains the string "http://example.com/foobar/blah" (and similarly for queries like "example" and "blah).  With the default dictionaries for host, url, and url_path, the search query would have to contain the complete host or url path.

What is the best way to accomplish this?  Should I be looking at building a custom dictionary that breaks down hosts and urls or is there something simpler I can do?

В списке pgsql-general по дате отправления:

Предыдущее
От: Zev Benjamin
Дата:
Сообщение: Full text search on partial URLs
Следующее
От: Zev Benjamin
Дата:
Сообщение: Re: Full text search on partial URLs