Re: Use of Deprecated Classes: SortableIntField SortableFloatField SortableDoubleField

2013-12-10 Thread O. Olson
Thank you kydryavtsev andrey. Wow this reference guide at
https://cwiki.apache.org/confluence/display/solr/Apache+Solr+Reference+Guid
is a lot more detailed than the official Solr Wiki at
http://wiki.apache.org/solr/.  May be those responsible for Solr should link
to it.


Thank you for confirming that my syntax in the schema.xml was correct. I
used the following: 

fieldType name=sint class=solr.TrieIntField precisionStep=0
positionIncrementGap=0 sortMissingLast=true omitNorms=true/

And it seemed to work. For others: While positionIncrementGap is documented
in the wiki at
https://cwiki.apache.org/confluence/display/solr/Field+Type+Definitions+and+Properties
the precisionStep is covered at
http://lucene.apache.org/solr/4_6_0/solr-core/org/apache/solr/schema/TrieField.html#precisionStep
 

Thank you very much for your help.
O. O.





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Use-of-Deprecated-Classes-SortableIntField-SortableFloatField-SortableDoubleField-tp4105762p4106001.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Use of Deprecated Classes: SortableIntField SortableFloatField SortableDoubleField

2013-12-09 Thread Kydryavtsev Andrey
Javadoc for this deprecated classes suggest to use TrieIntField, TrieFloatField 
and TrieDoubleField respectively instead

10.12.2013, 01:19, O. Olson olson_...@yahoo.it:
 Use of Deprecated Classes: SortableIntField SortableFloatField
 SortableDoubleField

 I am attempting to migrate from Solr 4.3 to Solr 4.6. When I
 run the example in 4.6, I get warnings SortableIntField etc. asking me to
 consult the documentation to replace them accordingly.

 If these classes are deprecated, I think it would not be a
 good idea to use them in the examples as in: 
 http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_6/solr/example/example-DIH/solr/db/conf/schema.xml
  Here, weight, price and popularity seem to use the deprecated sfloat and 
 sint.

 Does anyone know where I can find documentation to replace
 these classes in my schema file. Thank you,
 O. O.


Re: Use of Deprecated Classes: SortableIntField SortableFloatField SortableDoubleField

2013-12-09 Thread O. Olson
Thank you kydryavtsev andrey. Could you please suggest some examples. There
is no documentation on this. Also is there a reason why these classes are
not used in the examples even though they are deprecated?

I am looking for examples like below: Should I put the following in my
schema.xml file to use the TrieIntField:

fieldType name=sint class=solr.TrieIntField sortMissingLast=true
omitNorms=true/

Is this specification correct? Should it also have the sortMissingLast and
omitNorms, because I want something that I can use for sorting? I have no
clue how you get these.

Thank you again,
O. O.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Use-of-Deprecated-Classes-SortableIntField-SortableFloatField-SortableDoubleField-tp4105762p4105781.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Use of Deprecated Classes: SortableIntField SortableFloatField SortableDoubleField

2013-12-09 Thread Kydryavtsev Andrey
Could you please suggest some examples. There
 is no documentation on this. 

You can find examples with this field types in solr codebase (like this 
http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/collection1/conf/schema.xml?view=cocontent-type=text%2Fplain
 )
You can find more details about solr field types here 
http://wiki.apache.org/solr/SchemaXml or here  
https://cwiki.apache.org/confluence/display/solr/Field+Types+Included+with+Solr

 fieldType name=sint class=solr.TrieIntField sortMissingLast=true
 omitNorms=true/

Yes, it seems like correct specification.

Should it also have the sortMissingLast and
 omitNorms, because I want something that I can use for sorting?

Only name and class parameters are mandatory. But optional parameters can 
also be useful for your field type. You can find what they actually mean here 
https://cwiki.apache.org/confluence/display/solr/Field+Type+Definitions+and+Properties
 

10.12.2013, 02:19, O. Olson olson_...@yahoo.it:
 Thank you kydryavtsev andrey. Could you please suggest some examples. There
 is no documentation on this. Also is there a reason why these classes are
 not used in the examples even though they are deprecated?

 I am looking for examples like below: Should I put the following in my
 schema.xml file to use the TrieIntField:

 fieldType name=sint class=solr.TrieIntField sortMissingLast=true
 omitNorms=true/

 Is this specification correct? Should it also have the sortMissingLast and
 omitNorms, because I want something that I can use for sorting? I have no
 clue how you get these.

 Thank you again,
 O. O.

 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Use-of-Deprecated-Classes-SortableIntField-SortableFloatField-SortableDoubleField-tp4105762p4105781.html
 Sent from the Solr - User mailing list archive at Nabble.com.