Rating Documents

37 views
Skip to first unread message

bass

unread,
Apr 17, 2012, 7:46:31 AM4/17/12
to const...@googlegroups.com
Hi,
 
I'm currently testing constellio, I would like to have some advice on how to, or is it possible to :
  • Implement a rating of documents (for example, at start all documents have 1 star, et to be able to tag documents with 3, 5, 10 stars) . It could be possible to special keywords like "MyRating5star" "MyRating1star" , but could be long to implement... Any better ideas? Could it be possible to have another field than Free text tags under each result?
  • We have problems on links, especially in Firefox, clicking on links sometimes doesn't work (we have indexed files via cifs)
Thanks for your answers.
 
 

France Labs

unread,
Apr 18, 2012, 4:46:14 AM4/18/12
to Constellio
Hello,

- One solution could be to add a new field in the index to store the
rating of the document.
You can also modify the result page wicket to display the content of
this field. Then it would be possible
to use this new field in your query (to select only 5 stars documents
for exemple). But you will have to
do some implementation in order to modify the value of this field on
the solr document from the
result page wicket. Can the rating be different for each user or is it
only related to the document itself?
Do you also want the rating of a document by a user to have an impact
on the overall ranking of the document in the result set?

- Maybe you have to install the firefox plugin (https://
addons.mozilla.org/fr/firefox/addon/locallink/)
that enable opening local link from a web page

Aurélien

On Apr 17, 1:46 pm, bass <bastien.lebl...@gmail.com> wrote:
> Hi,
>
> I'm currently testing constellio, I would like to have some advice on how
> to, or is it possible to :
>
>    - Implement a rating of documents (for example, at start all documents
>    have 1 star, et to be able to tag documents with 3, 5, 10 stars) . It could
>    be possible to special keywords like "MyRating5star" "MyRating1star" , but
>    could be long to implement... Any better ideas? Could it be possible to
>    have another field than *Free* text *tags *under each result?
>    - We have problems on links, especially in Firefox, clicking on links

bastien...@gmail.com

unread,
Apr 18, 2012, 5:41:28 AM4/18/12
to const...@googlegroups.com
Hi,

Thanks for your answer.

Our rating would be global (a rating for a document, not for a user).
Could you explain what you mean by "But you will have to do some


implementation in order to modify the value of this field on the solr

document from the result page wicket" ?
So I would add a field to the index, but how could it be possible to
populate values in this field? Is it possible to add the values while
searching/browsing documents through the constellio interface?

Thank you!

Bastien

2012/4/18 France Labs <ad...@francelabs.com>:

> --
> Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Constellio.
> Pour envoyer un message à ce groupe, adressez un e-mail à const...@googlegroups.com.
> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse constellio+...@googlegroups.com.
> Pour plus d'options, consultez la page de ce groupe : http://groups.google.com/group/constellio?hl=fr
>

France Labs

unread,
Apr 18, 2012, 3:28:09 PM4/18/12
to Constellio
Hi,

In fact, as you cannot update a field in solr without reinserting the
whole document, you'd better use an external field.
An external field means that the field is written in an external
file.
You have to create a component in Constellio that will directly access
to this field and put the "rating" value in it.
Then you have to perform a commit on the solr each time you want to
consider the modification made on the file.

Aurélien

On Apr 18, 11:41 am, "bastien.lebl...@gmail.com"

bass

unread,
May 3, 2012, 4:45:36 AM5/3/12
to const...@googlegroups.com
Hi,

Thank you for your answer.

Do you have any example on how this can be achieved? 
I don't get you would change a "rating" for a document..

Thanks.
> > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse constellio+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages