Comments (5)
Why is there no way to setboost in phpsolrclient?
If not, how should I approach the method(setboost) in phpsolrclient?
Thanks;
Original comment by [email protected]
on 16 Jun 2009 at 4:13
from solr-php-client.
What type of boost are you trying to set?
The Apache_Solr_Document class contains methods for setting a document level
boost as well as individual
field boosts. You'll need to use the document class for adding documents to
solr that you want boosts on.
They should all be listed in the PHPDocs.
<code>
....
$document = new Apache_Solr_Document();
// set a boost for the document
$document->setBoost(2);
// get the current document boost
$document->getBoost();
// add a field with a boost as the last parameter
$document->addField("field", "value", 2);
// get a current field's boost
$document->getFieldBoost("field");
...
</code>
Does this address all your boosting needs?
Original comment by [email protected]
on 16 Jun 2009 at 3:56
from solr-php-client.
Issue 10 has been merged into this issue.
Original comment by [email protected]
on 17 Jun 2009 at 3:56
from solr-php-client.
I've verified that the boost functions I've mentioned exist in the download and
not just in trunk source. So I'm
considering this a "lack of wiki documentation" issue.
I've documented my comments on the boosting functionality into a new FAQ wiki
page:
http://code.google.com/p/solr-php-client/wiki/FAQ#How_do_I_Add_Document_/_Field_
Boosts?
Original comment by [email protected]
on 17 Jun 2009 at 6:34
- Changed state: Done
from solr-php-client.
The answer to your expressed thanks, I use the 1.2 version, due to my
negligence,
resulting in a waste of your time, I am sorry
Original comment by [email protected]
on 18 Jun 2009 at 1:15
from solr-php-client.
Related Issues (20)
- How to enable wildcard HOT 1
- Cannot use root-level URL Solr servers HOT 2
- Basic Auth HOT 5
- Added feature. Get Solr system information HOT 1
- SOLR - 1 writer server 1 search server work on realtime HOT 4
- Basic Auth r64 Does Not Support Distributed Searches HOT 2
- keep alive connection HOT 1
- Support for proxy
- Composer support HOT 1
- Update copyrights to reflect PTC ownership HOT 1
- incorrect implementation of "ping" HOT 10
- Facet Query problem HOT 1
- Patch for /branches/response_parsing/Apache/Solr/Service.php HOT 2
- Search handler resolution HOT 1
- getting problem in configuring the solr-php-cline HOT 1
- Solr 4.3.0 HOT 3
- Get Spell Check Suggestions in frontend.
- Solr Indexing errror:Fatal error: Uncaught exception 'Apache_Solr_HttpTransportException' with message ''400' Status: Bad Request' HOT 1
- Add support to set search servlet [other than "select"] HOT 1
- PERFORMANCE WARNING: Overlapping onDeckSearchers=2 &Error opening new searcher.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solr-php-client.