1 | <?php |
||
8 | class Update extends SolrRequest |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $handlerName = 'update'; |
||
14 | |||
15 | /** |
||
16 | * $var string |
||
17 | */ |
||
18 | protected $responseClass = '\PSolr\Response\Response'; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $element = 'commit'; |
||
24 | |||
25 | /** |
||
26 | * @var bool |
||
27 | */ |
||
28 | protected $waitFlush; |
||
29 | |||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | protected $waitSearcher; |
||
34 | |||
35 | /** |
||
36 | * @var bool |
||
37 | */ |
||
38 | protected $softCommit; |
||
39 | |||
40 | /** |
||
41 | * @param bool $waitFlush |
||
42 | * |
||
43 | * @return \PSolr\Request\Commit |
||
44 | * |
||
45 | * @see http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22commit.22_and_.22optimize.22 |
||
46 | */ |
||
47 | public function waitFlush($waitFlush = true) |
||
52 | |||
53 | /** |
||
54 | * @param bool $waitSearcher |
||
55 | * |
||
56 | * @return \PSolr\Request\Commit |
||
57 | * |
||
58 | * @see http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22commit.22_and_.22optimize.22 |
||
59 | */ |
||
60 | public function waitSearcher($waitSearcher = true) |
||
65 | |||
66 | /** |
||
67 | * @param bool $softCommit |
||
68 | * |
||
69 | * @return \PSolr\Request\Commit |
||
70 | * |
||
71 | * @see http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22commit.22_and_.22optimize.22 |
||
72 | */ |
||
73 | public function softCommit($softCommit = true) |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function buildAttributes() |
||
90 | |||
91 | /** |
||
92 | * Builds an attribute from a class property if it is set. |
||
93 | * |
||
94 | * @param string $property |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | public function buildAttribute($property) |
||
112 | |||
113 | /** |
||
114 | * {@inheritDoc} |
||
115 | */ |
||
116 | public function renderBody() |
||
120 | } |
||
121 |