Re: Personalized search parameters

2018-01-08 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
r/blob/fb4bbcb27a13da2665f3c19d6c75bfc4f5778440/dexter-core/src/main/java/it/cnr/isti/hpc/dexter/lucene/LuceneHelper.java#L386 From: solr-user@lucene.apache.org At: 01/06/18 17:24:07To: solr-user@lucene.apache.org Subject: Re: Personalized search parameters Don't we need vectors of the same size to calculate the

Re: Personalized search parameters

2018-01-06 Thread marco
Don't we need vectors of the same size to calculate the cosine similarity? Maybe I missed something, but following that example it looks like i have to manually recreate the sparse vectors, because the term vector of a document should (i may be wrong) contain only the terms that appear in that

Re: Personalized search parameters

2018-01-06 Thread Diego Ceccarelli
Maybe I misunderstood the question, but why you need to create the full size vectors? can't you just compute the cosine using the sparse vectors? On Fri, Jan 5, 2018 at 10:09 PM, marco wrote: > At the moment I have another problem: is there an efficient way to calculate

Re: Personalized search parameters

2018-01-05 Thread marco
At the moment I have another problem: is there an efficient way to calculate the cosine similarity between documents? I'm following (with the required modifications) THIS code that calculates the cosine similarity between 2 documents, but it doesn't look

Re: Personalized search parameters

2018-01-05 Thread marco
This looks like a very good solution actually. In the mean time i started working in a different way: I created a custom query componentan from there i accessed the list of results of the query, and i was searching a way to reorder that list, but i'd be better look to the RankQuery, it surely

Re: Personalized search parameters

2018-01-05 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
From: solr-user@lucene.apache.org At: 01/05/18 15:35:46To: solr-user@lucene.apache.org Subject: Re: Personalized search parameters In particular we have to retrieve the documents with a normal search followed by a result reranking phase where we calculate the cosine similarity between

Re: Personalized search parameters

2018-01-05 Thread marco
First of all thank you for the reply. I understand your idea, and that would make the thing a lot easyer, the problem is that this system is being created as a university project, and we were specifically asked to develop a personalized search system based on result reranking. In particular we

Re: Personalized search parameters

2018-01-05 Thread Erik Hatcher
IMO you’re making this more complicated than it needs to be. Forget for a moment where the user profile is stored. Say user A likes turtles. User B likes puppies. User A queries, and this gets sent to Solr: q=something=turtles User B queries: q=something=puppies I’d fetch the user

Personalized search parameters

2018-01-05 Thread marco
Hi, first of all I want to say that i'm a beginner with the whole Lucene/Solr environment. I'm trying to create a simple personalized search engine, and to do so i was thinking about adding a parameter user= to the uri of the query requests, that i would need during the scoring phase to rerank