Hello everyone
Loving solr, got an idiot question for you.
I have been manually deleting our index in the python interpretor when
testing
from solr import SolrConnection
c = SolrConnection(host='localhost:8983', persistent=False)
allgone = '[ * : * ]'
c.deleteByQuery(query=allgone)
c.commit(opt
This should work :
c.deleteByQyery('id:[* TO *]')
c.commit()
Regards
Roopesh
vanderkerkoff wrote:
Hello everyone
Loving solr, got an idiot question for you.
I have been manually deleting our index in the python interpretor when
testing
from solr import SolrConnection
c = SolrConnection(host=
roopesh, thank you very much
roopesh-2 wrote:
>
> This should work :
> c.deleteByQyery('id:[* TO *]')
> c.commit()
>
> Regards
> Roopesh
>
> vanderkerkoff wrote:
>> Hello everyone
>>
>> Loving solr, got an idiot question for you.
>>
>> I have been manually deleting our index in the python inte
Hi all,
I'm puzzling over how to boost a date field in a DisMax query. Atm, my qf is
"title^5 summary^1". However, what I really want to do is to allow document
with latest "listedDate" to have better score. For example, documents with
listedDate:[NOW-1DAY TO *] have additional score over documen
Try using a boost function (bf) parameter like this:
bf=recip(rord(listedDate),1,1000,1000)^2.5
This should boost documents with more recent listedDate so they appear
higher in the results list. For more info see the wiki page on
DismaxRequestHandler and Functions:
http://wiki.apache.org/solr/D
I think in this case you can use a "bq" (Boost Query) so you can apply this
boost to the range you want.
your_date_field:[NOW/DAY-24HOURS TO NOW]^10.0
This example will boost your documents with date within the last 24h.
Regards,
Daniel
On 19/7/07 14:45, "climbingrose" <[EMAIL PROTECTED]> wrote
Sorry just correcting myself:
your_date_field:[NOW-24HOURS TO NOW]^10.0
Regards,
Daniel
On 19/7/07 15:25, "Daniel Alheiros" <[EMAIL PROTECTED]> wrote:
> I think in this case you can use a "bq" (Boost Query) so you can apply this
> boost to the range you want.
>
> your_date_field:[NOW/DAY-24HOUR
On 7/19/07, Roopesh P Raj <[EMAIL PROTECTED]> wrote:
This should work :
c.deleteByQyery('id:[* TO *]')
c.commit()
*:* works in the latest versions of Solr to mean "all documents", and
I think we will be adding special support for that query to quickly
remove the entire index.
-Yonik
Thanks for both answers. Which one is better in terms of performance? bq or
bf?
On 7/20/07, Daniel Alheiros <[EMAIL PROTECTED]> wrote:
Sorry just correcting myself:
your_date_field:[NOW-24HOURS TO NOW]^10.0
Regards,
Daniel
On 19/7/07 15:25, "Daniel Alheiros" <[EMAIL PROTECTED]> wrote:
> I th
Just tried the bq approach and it works beautifully. Exactly what I was
looking for. Still, I'd like to know which approach is the preferred? Thanks
again guys.
On 7/20/07, climbingrose <[EMAIL PROTECTED]> wrote:
Thanks for both answers. Which one is better in terms of performance? bq
or bf?
O
: Just tried the bq approach and it works beautifully. Exactly what I was
: looking for. Still, I'd like to know which approach is the preferred? Thanks
: again guys.
i personally recommend the function approach, because it gives you a more
gradual falloff in terms of the scores of documents ...
: I tried looking into the "SolrServlet", it is depricated...(I'm gonna
: looking into Javadoc as well) but just looking for the quick answer ...
: which new classes shld I be using to get the similar result as in the
: tutorial. let's say, I'm doing the filter search and I'm sending the
: query
Hi-
I'd like to make a multivalued field of comma-separated phrases. Is there a
class available that I can use for this?
I can see how to create N separate elements for the same field in the update
XML, but is there something I can use in type definition?
Thanks,
Lance
Lance Lance wrote:
Hi-
I'd like to make a multivalued field of comma-separated phrases. Is there a
class available that I can use for this?
I can see how to create N separate elements for the same field in the update
XML, but is there something I can use in type definition?
If you are just
Thanks for the answer Chris. The DisMax query handler is just amazing!
On 7/20/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: Just tried the bq approach and it works beautifully. Exactly what I was
: looking for. Still, I'd like to know which approach is the preferred?
Thanks
: again guys.
Matthew Runo wrote:
It seems that as soon as I get a commit, snapshooter goes wild.
I have 1107 running instances of snapshooter right now..
I suspect you've got pathing and/or permissions issues.
First try running snapshooter -v, and it will be louder. I've often had
to dig in deeper, tho.
16 matches
Mail list logo