tnx. as i see more like this.i underestand that if i set field "termVectors=true" and i set this in solrconfig:
<requestHandler name="/mlt" class="solr.MoreLikeThisHandler"> </requestHandler> now i use pysolr and i add this docs: { 'id': 'doc_11', 'title': 'these trees are amazing', 'tags':['fruit','peach','apple'] } now i want to find like more this doc that tags=fruit so i write this: similar = solr.more_like_this(q='tags:fruit',mltfl='tags') but i didn't get any answer. any help? On Sun, Sep 6, 2015 at 9:20 AM, Erick Erickson <erickerick...@gmail.com> wrote: > The closest thing to this I know of would be "more like this", > you might want to take a look at that capability: > > https://cwiki.apache.org/confluence/display/solr/MoreLikeThis > > Best, > Erick > > On Sat, Sep 5, 2015 at 11:29 PM, sara hajili <hajili.s...@gmail.com> > wrote: > > hi > > i have a social app and i wanna to index all people posts. > > in this case i index post data like : > > title,images,tags,caption,comment,like counts,etc > > and i need to search on tag"people tags on their post ,this tags are > > related to their post" > > i am willing to undrestand that solr know any relational bettwen tags?!! > > "i know we can set filter to set synonym of a search clause ,and for > > example if people search football ,(if in synonym file i set > > "football"="soccer") solr search on football and soccer. > > i need to know solr can underestand other relational between tags?? > > i mean solr now about companion relation betwwen tags?!! > > see this: > > if i have tags in solr "football,sport,cr7" > > and in many tags in solr doc football and sport come to gether. > > if user search sport, > > solr underestand that search about sport and football together("because > > football and sport come together more and more in docs,so solr must > > conclude that sport and football have comparison relational,so search on > > both of them ")?? > > so solr know that?if no how implement this? > > or if yes.how i use this feature? > > tnx. >