You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Frank A <fs...@gmail.com> on 2011/06/11 16:35:39 UTC

Solr indexing questions

I currently have my site setup using SOLR for some pretty simple queries and
am looking to add some additional features and was hoping to get some
guidance.

Heres my situation, for a given restaurant I have the following info:

rest name,
editorial,
list of features (e.g. Reservations, Good for Groups, etc)
list of cuisines (American, Italian, etc)
List of user reviews
Additional meta data

There are 2 different things I want to do:

Build a directory based on "keywords or phrases" - e.g. looking through all
the data find the common keywords/phrases - e.g. "hot dog" or "Brazilian
steakhouse". I'm not sure how to extract these keyphrases from the data
without having to input them myself.  Is this a good fit for SOLR?  If so
what features should I look into?

Second, is an "advanced" search that basically matches user input on ANY of
the fields.  However I'd like it to have some basic handling for mispelled
words, synonyms (bbq and bar-b-q) and weight the user of the terms
differently (e.g. name of restaurant vs. in a users comments).  I'm sure
this is SOLRs sweet spot but I'm having trouble figuring out how to put it
all together.

Thanks in advance.

Re: Solr indexing questions

Posted by Jamie Johnson <je...@gmail.com>.
I'm not sure about your first question but your second question (searching
across fields using a single keyword) I believe is exactly what dismax was
created for, check out
http://www.lucidimagination.com/blog/2010/05/23/whats-a-dismax/ for some
information.  In regards to spelling errors you could add a phonetic field
which would be included in the weighted result, a quick google gave me this
http://search.lucidimagination.com/search/document/CDRG_ch05_5.6.12.
Synonyms are also pretty straight forward and are included in the sample
that ships with Solr.

On Sat, Jun 11, 2011 at 10:35 AM, Frank A <fs...@gmail.com> wrote:

> I currently have my site setup using SOLR for some pretty simple queries
> and
> am looking to add some additional features and was hoping to get some
> guidance.
>
> Heres my situation, for a given restaurant I have the following info:
>
> rest name,
> editorial,
> list of features (e.g. Reservations, Good for Groups, etc)
> list of cuisines (American, Italian, etc)
> List of user reviews
> Additional meta data
>
> There are 2 different things I want to do:
>
> Build a directory based on "keywords or phrases" - e.g. looking through all
> the data find the common keywords/phrases - e.g. "hot dog" or "Brazilian
> steakhouse". I'm not sure how to extract these keyphrases from the data
> without having to input them myself.  Is this a good fit for SOLR?  If so
> what features should I look into?
>
> Second, is an "advanced" search that basically matches user input on ANY of
> the fields.  However I'd like it to have some basic handling for mispelled
> words, synonyms (bbq and bar-b-q) and weight the user of the terms
> differently (e.g. name of restaurant vs. in a users comments).  I'm sure
> this is SOLRs sweet spot but I'm having trouble figuring out how to put it
> all together.
>
> Thanks in advance.
>