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 sara hajili <ha...@gmail.com> on 2016/07/05 18:42:32 UTC

Solr more like this

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??

RE: Solr more like this

Posted by "Jamal, Sarfaraz" <Sa...@VerizonWireless.com.INVALID>.
Could you index it, do the 'like this' and  then delete it from the index?

All in one smooth user experience obviously.

(Just throwing it out there).

Sas



-----Original Message-----
From: Charlie Hull [mailto:charlie@flax.co.uk] 
Sent: Wednesday, July 6, 2016 11:02 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr more like this

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

Re: Solr more like this

Posted by Alessandro Benedetti <ab...@apache.org>.
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 <ch...@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

Re: Solr more like this

Posted by Charlie Hull <ch...@flax.co.uk>.
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