Thanks. Not sure what the "value" should be (assume it is the servlet
name, but is there a default servlet name for term vectors? - the docs
don't really say much, so any guidance useful). It also looks like
using the ModifiableParams returns only a single offset for each term
i.e. if tf > 1 there still only looks to be a single offset is returned
rather than details of all three occurrences. I logged some output to
see all the properties returned and the snippet showing offsets is:
[01-Oct-2010 15:42:30] class is SolrObject name is sit
[01-Oct-2010 15:42:30] value=6 propname=tf
[01-Oct-2010 15:42:30] class is SolrObject name is offsets
[01-Oct-2010 15:42:30] value=1171 propname=start
[01-Oct-2010 15:42:30] value=1174 propname=end
So in the above example tf=6 but only a single start and end property is
returned in the "sit" SolrObject. Note that I haven't looked any further
into this at this stage and I may be missing something obvious.
Scott.
On 1/10/10 9:43 PM, Israel Ekpo wrote:
Scott,
You can also use the SolrClient::setServlet() method with
SolrClient::TERMS_SERVLET_TYPE as the type
http://www.php.net/manual/en/solrclient.setservlet.php
On Fri, Oct 1, 2010 at 12:57 AM, Scott Yeadon <scott.yea...@anu.edu.au
<mailto:scott.yea...@anu.edu.au>> wrote:
Hi,
Sorry, scrap that, just found that SolrQuery is a subclass of
ModifiableParams so can do this via "add" method and seems to work ok.
Apologies for the noise.
Scott.
On 1/10/10 2:35 PM, Scott Yeadon wrote:
Hi,
Just wondering if there is a way of setting the "qt" parameter
in the Solr PHP API. I want to use the Term Vector Component
but not sure this is supported in the API?
Thanks
Scott.
--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
°O°
"Good Enough" is not good enough.
To give anything less than your best is to sacrifice the gift.
Quality First. Measure Twice. Cut Once.
http://www.israelekpo.com/