No, it's actually the value I expect, 260078
SOLRResponse:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">52</int>
<lst name="params">
<str name="indent">true</str>
<str name="rows">0</str>
<str name="q">dc.type:text</str>
</lst>
</lst>
<result name="response" numFound="260078" start="0"/>
</response>
DSpace discovery search:
http://www2.senado.leg.br/bdsf/discover?filtertype_1=type&filter_relational_operator_1=equals&filter_1=text
However, if I type ((dc.type:text)) as the main query, the results are
closer to what SOLR returns:
http://www2.senado.leg.br/bdsf/discover?query=%28%28dc.type%3Atext%29%29
So index is good, rebuilding it won't do any good. Guess the problem is
with my custom filter?
My discovery filter:
<bean id="searchFilterType"
class="org.dspace.discovery.configuration.DiscoverySearchFilter">
<property name="indexFieldName" value="type"/>
<property name="metadataFields">
<list>
<value>dc.type</value>
</list>
</property>
</bean>
But I don't see anything wrong with it.
Ats,
Alcides Carlos de Moraes Neto
2013/8/5 Andrea Schweer <schw...@waikato.ac.nz>
> Hi,
>
>
> On 06/08/13 10:09, Alcides Carlos de Moraes Neto wrote:
>
> It seems SOLR has indexed dc.type correctly:
> <response>
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">146</int>
> <lst name="params">
> <str name="indent">true</str>
> <str name="rows">0</str>
> <str name="q">dc.type:[* TO *]</str>
> </lst>
> </lst>
> <result name="response" numFound="260514" start="0"/>
> </response>
>
> This is the exact quantity of items in the repository.
>
>
> Yes, that looks like your discovery index is correct. So either something
> is going wrong during querying or the metadata values aren't what you
> expect.
>
> What numFound value do you get for this query:
>
> curl --globoff
> "http://127.0.0.1:8080/solr/search/select?indent=true&rows=0&q=dc.type:text"<http://127.0.0.1:8080/solr/search/select?indent=true&rows=0&q=dc.type:text>
>
> Is it 2141 like when you do a search for dc.type=text via the user
> interface?
>
>
> cheers,
> Andrea
>
> --
> Dr Andrea Schweer
> IRR Technical Specialist, ITS Information Systems
> The University of Waikato, Hamilton, New Zealand
>
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette