So, if you already indexed N pdfs you can use the MLT request handler to look for similar documents to a specific text. This means you need to manually extract the content from the pdf ( like using Tika for example) and then passing that to the specific request handler.
http://wiki.apache.org/solr/MoreLikeThisHandler#Examples In particular : http://localhost:8983/solr/mlt?stream.url=http://lucene.apache.org/solr/&mlt.fl=manu,cat&mlt.interestingTerms=list&mlt.mintf=0 Not sure if this is still valid. I would verify the request handler code, to check if the request parameters are still supported. I will do it tomorrow, but in the meantime feel free to verify. Cheers On Wed, Jul 6, 2016 at 4:02 PM, Charlie Hull <char...@flax.co.uk> wrote: > On 05/07/2016 19:42, sara hajili wrote: > >> Hi >> I indexed pdf files yo solr.and now I wanna to know is there any way to >> uplaod a pdf file and solr return related pdf in result? >> I mean I don't want to index pdf file (the file that I wanna to get pdf >> more like this for this pdf).and just upload pdf file and get mlt >> result.can I do this?? >> >> If Solr hasn't indexed a PDF file, it can't work out it's 'like this'. So > I'd say, no, you can't. > > Cheers > > Charlie > > -- > Charlie Hull > Flax - Open Source Enterprise Search > > tel/fax: +44 (0)8700 118334 > mobile: +44 (0)7767 825828 > web: www.flax.co.uk > -- -------------------------- Benedetti Alessandro Visiting card : http://about.me/alessandro_benedetti "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England