Thanks Jan.* It worked perfect*. Thats all i needed.
May the God bless you.

Regards
Shameema

On Tue, May 22, 2012 at 4:57 PM, Jan Høydahl <jan....@cominvent.com> wrote:

> Hi,
>
> I would probably use (e)DisMax.
> Index your url and metadata fields as text without stemming, e.g.
> text_general
> Then query as &q=mycompany&defType=edismax&qf=title^10 content^1 url^5
> If you like to give higher weight to the domain/site part of the URL,
> apply UrlClassifyProcessor and search the "domain" field separately with
> higher weight.
>
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.facebook.com/Cominvent
> Solr Training - www.solrtraining.com
>
> On 22. mai 2012, at 12:23, Shameema Umer wrote:
>
> > Thanks Li Li and Jan.
> >
> > Yes, if url is www.company.com/foo/bar/index.html, I should be able to
> > search the sub-strings like company, foo or bar etc.
> >
> > when I changed the part of my schema file from
> >
> >    <defaultSearchField>content</defaultSearchField>
> >
> > to
> >
> >   <defaultSearchField>stext</defaultSearchField>
> >   <copyField source="title" dest="stext"/>
> >   <copyField source="content" dest="stext"/>
> >   <copyField source="site" dest="stext"/>
> >
> > server error occurred after restarting solr. Do I need to re-index solr.
> > Please help me as i need to search title url and content with privilege
> to
> > title. If DisMaxRequestHandler helps me solve my problems, let me know
> the
> > best tutorial page to study
> > it.<
> http://wiki.apache.org/solr/DisMaxRequestHandler?action=fullsearch&context=180&value=linkto%3A%22DisMaxRequestHandler%22
> >
> >
> > Thanks
> > Shameema
> > <
> http://wiki.apache.org/solr/DisMaxRequestHandler?action=fullsearch&context=180&value=linkto%3A%22DisMaxRequestHandler%22
> >
>
>

Reply via email to