[GeoNetwork-users] Lucene index that stores records accessibility

Hi All,

Do we have a lucene index field that stores records' accessibility (public
or private).
I mean such a field using which a search can be made to get only public
records.

My requirement is to configure a csw entry point such that it filters only
public records.

I checked WEB-INF\config-lucene.xml and
WEB-INF\data\config\schema_plugins\iso19139\index.fields.xsl, but no such
field exists.

There is a dump field in config-lucene.xml like
<field name="_isPublishedToAll" tagName="isPublishedToAll"/>
but this cannot be used as a filter parameter in the new csw entry point
that I have defined to get only public records.
So the following does not work in config-csw-servers.xml
<service name="csw-public">
       <class name=".services.main.CswDiscoveryDispatcher" >
           <param name="filter" value="+_isPublishedToAll:true"/>
       </class>
</service>

Does anyone know how to achieve this?

Regards,
Ameet

On Fri, Aug 14, 2015 at 1:30 PM, Ameet Chaudhari <ameet.chaudhari@anonymised.com>
wrote:

Hi All,

Do we have a lucene index field that stores records' accessibility (public
or private).
I mean such a field using which a search can be made to get only public
records.

My requirement is to configure a csw entry point such that it filters only
public records.

I checked WEB-INF\config-lucene.xml and
WEB-INF\data\config\schema_plugins\iso19139\index.fields.xsl, but no such
field exists.

There is a dump field in config-lucene.xml like
<field name="_isPublishedToAll" tagName="isPublishedToAll"/>
but this cannot be used as a filter parameter in the new csw entry point
that I have defined to get only public records.
So the following does not work in config-csw-servers.xml
<service name="csw-public">
       <class name=".services.main.CswDiscoveryDispatcher" >
           <param name="filter" value="+_isPublishedToAll:true"/>
       </class>
</service>

Does anyone know how to achieve this?

Regards,
Ameet

I got the solution to above. It is to use either +_op0:1 or
+_groupPublished:all in the filter for the csw entry point.

Happy weekend to all
Ameet