Re: Delete / filter / hide query results

2009-01-07 Thread DODMax

Please I really need some help to solve this.
Does anybody have even a little idea ?

Thank you.

-- 
View this message in context: 
http://www.nabble.com/Delete---filter---hide-query-results-tp21287332p21326944.html
Sent from the Solr - User mailing list archive at Nabble.com.



Delete / filter / hide query results

2009-01-05 Thread DODMax

Hello,

I'm trying to resolve a problem for which I've seen several posts but I have
not found any suitable answer.

I need to filter my results according to complex rights managment such as it
can't be part of a field or something like this. So let's say that the only
way to know if a user has access rights is by calling something like
accessRights(sessionID, docID) where docID is stored in a field.

My first idea was to simply delete results from rsp.getResults() after the
search process but it breaks faceting (expecially facet count). So since I
don't see any way to delete results from faceting it's not a good answer
(anyway it's ugly to build facets to delete them after).

I then decided to use a custom SearchComponent called right after index
querying (before faceting is done) but for what I have read it's not a good
idea to delete results because they are stored in more than one place and it
could break the caching system (I suppose that if I delete results for user
A they will be deleted for user B too if he makes the same query although he
does have access rights). Anyway I don't really understand where results are
stored in ResponseBuilder; DocSet / DocList are pretty obscur.

So here I am, I need a way to filter results from cache for each query
basing on an external function call but I don't see how without having to
write my own QueryComponent).


Thanks for your help.
-- 
View this message in context: 
http://www.nabble.com/Delete---filter---hide-query-results-tp21287332p21287332.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: DataImportHandler, custom properties

2008-11-14 Thread DODMax



 http://wiki.apache.org/solr/DataImportHandler#head-071ff018f44ecbdb1cf55afc4c2a857f44ea1ea4
 
 entity name=e transformer=TemplateTransformer ..
 field column=namedesc template=hello${e.name},${eparent.surname} /
 ...
 /entity
 

The problem is that namedesc must be an existing column and I have no idea
of column name in advance.

To be more clear, what I want is to be able to retrive information which are
not in database from the index. For example to store source database in a
kind of custom property and have it back with results.  
-- 
View this message in context: 
http://www.nabble.com/DataImportHandler%2C-custom-properties-tp20482190p20498600.html
Sent from the Solr - User mailing list archive at Nabble.com.



DataImportHandler, custom properties

2008-11-13 Thread DODMax

Hello,

I need somehow to add some custom properties to an entity so they will
appear with indexed datas. Something like this :

entity
   field column=id name=id /
   custom name=prop1 value=val1 /
/entity

The point is that I don't have this property in the database so it can't be
imported.
Plus, I'm generating the data-source file from another database so I don't
know fields' name in advance.

Triky things I may have tried with the regex transfomers for example don't
work because column name must be existing but not already used (or it will
be replaced).
field column=required name=prop1 regex=(.+) replaceWith=val1/

Any idea please ?
-- 
View this message in context: 
http://www.nabble.com/DataImportHandler%2C-custom-properties-tp20482190p20482190.html
Sent from the Solr - User mailing list archive at Nabble.com.