Sorting on multivalues field in Solr

2015-05-12 Thread nutchsolruser
Is there any way we can sort multivalued field in Solr. I have two documents
with field custom_code and values are as below,

Doc 1 : 11, 78, 45, 22
Doc 2 : 56, 74, 62, 10

When I sort it in ascending order the order should be ,
Doc 2 : 56, 74, 62, 10
Doc 1 : 11, 78, 45, 22

Here Doc 2 will come first because it has smallest element 10 (which is
greater that 11 of doc 1). 


How can we achieve this in Solr. What is the easiest way?






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Sorting-on-multivalues-field-in-Solr-tp4204996.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr custom component issue

2015-05-11 Thread nutchsolruser
Thanks Upayavira,

I tried it by changing it to first-component in solrconfig.xml but no luck . 

Am I missing something here ? Here I want to add my own qf fields with boost
in query. 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-custom-component-issue-tp4204799p4204810.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr custom component issue

2015-05-11 Thread nutchsolruser
Hi ,

I am trying to add my own query parameters in Solr query using solr
component . In below example I am trying to add qf parameter in the query.
Below is my prepare method of component. But Solr is not considering qf
parameter while searching It is using df parameter that I have added in
schema.xml file as default search field.



 @Override
   public void prepare(ResponseBuilder rb) throws IOException {
 LOG.info(called Prepare );
 SolrQueryRequest req = rb.req;
 SolrQueryResponse rsp = rb.rsp;
 SolrParams params = req.getParams();
 ModifiableSolrParams modifiableSolrParams=new
ModifiableSolrParams(params);
 modifiableSolrParams.set(qf, journal);
 rb.req.setParams(modifiableSolrParams);
 QParser parser;
 try {
parser = QParser.getParser(rb.getQueryString(),
edismax, req);
rb.setQparser(parser) ;
 } catch (SyntaxError e) {
e.printStackTrace();
 }
 LOG.info(Solr Request +rb.req.toString());
   }

relevanct request handler in solrconfig.xml file : 
  requestHandler name=/custom-api class=solr.SearchHandler 
 lst name=defaults
str name=q.alt*:*/str
   str name=dfdescription/str
/lst
  arr name=last-components
  strcustom-component/str
/arr
/requestHandler


How I can add qf param correctly in query so that solr can use this while
searching ?






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-custom-component-issue-tp4204799.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr custom component issue

2015-05-11 Thread nutchsolruser
I can not set qf in solrconfig.xml file because my qf and boost values will
be changing frequently . I am reading those values from external source. 

Can we not set qf value from searchComponent? Or is there any other way to
do this?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-custom-component-issue-tp4204799p4204815.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr custom component issue

2015-05-11 Thread nutchsolruser
These boosting parameters will be configured outside Solr and there is
seperate module from which these values get populated , I am reading those
values from external datasource and I want to attach them to each request .



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-custom-component-issue-tp4204799p4204832.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Deploying multiple ZooKeeper ensemble on a single machine

2015-04-07 Thread nutchsolruser
 I have to choose unique client port #’s for each.   Here I can see that you
have same client port for all 3 servers. 

You can refer  this http://myjeeva.com/zookeeper-cluster-setup.html  link. 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Deploying-multiple-ZooKeeper-ensemble-on-a-single-machine-tp4198272p4198279.html
Sent from the Solr - User mailing list archive at Nabble.com.


Total term frequency in solr includes deleted documents

2014-10-28 Thread nutchsolruser
Currently I am working on getting term frequency (not document frequency) of
term in particular field for whole index. For that I am using function query 
ttf(field_name,'term'), This returns me total occurrences of term in that
field. But It seems it is also considering deleted documents while
calculating count. I have verified this using index optimization, after
optimization It is showing me correct count. 

How can we get exact term frequency with excluding deleted documents term
frequency, and that is without optimization because optimization is
expensive in our case ?
Is there any other way we can get term frequency for entire collection in
solr?

I have also tried following solutions,
I have also explored other options like,
1. term vector component - It returns per document term frequency for the
documents which matched the query.
2. facet - it returns document frequency
3. Luke request handler - returns top terms from given field (document
frequency)
4. terms component - returns document frequency






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Total-term-frequency-in-solr-includes-deleted-documents-tp4166288.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr FilterCache size

2014-10-14 Thread nutchsolruser
I am planning to use FilterCache in my solr setup. Want to know few things
regarding Filtercache
1. If my solrconfig.xml doesn't contain any cache configuration , basically
I have removed all the cache properties from solrconfig.xml. In this case
still caches will be used or not? if yes what is default value of it?
2. How to decide correct values size and initialSize of cache, what
parameters needs to be considered in this case?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-FilterCache-size-tp4164161.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr range query issue

2014-08-26 Thread nutchsolruser
Hi ,

I Am using solr 4.6.1 . I have name field in my schema and I am sending
following query from solr admin UI to solr. which will find names containing
characters other english alphabets.

-name:[A TO Z] AND -name:[a TO z]

In my opinion it should return documents which do not contain name in range
between A TO Z, but in my case Solr is also returning names starting with
letter Z. e.g.  Zareena, Zhariman,Zarimanabibi,Zarnabanu etc

Is this correct behaviour?if yes then what would be the correct query to
find user names which contain only english alphabet characters. 

Following is my debug output:
  debug: {
rawquerystring: -name:[A TO Z] AND -name:[a TO z],
querystring: -name:[A TO Z] AND -name:[a TO z],
parsedquery: -name:[a TO z] -name:[a TO z],
parsedquery_toString: -name:[a TO z] -name:[a TO z],
QParser: LuceneQParser,







--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-range-query-issue-tp4155327.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr range query issue

2014-08-26 Thread nutchsolruser
Sorry, before asking the question I should have done sufficient searching on
internet, I found my answer here.

http://stackoverflow.com/questions/8883419/solr-alphabetical-range-query

Thank You,




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-range-query-issue-tp4155327p4155328.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr is NoSQL database or not?

2014-02-28 Thread nutchsolruser
You may think this is silly question but let me ask this because i am
confused , 
http://www.lucidworks.com/webinar-solr-4-the-nosql-search-server/  this says
Solr is NoSQL but many other links dont have solr in their list as NoSQL
database.

http://en.wikipedia.org/wiki/NoSQL
http://en.wikipedia.org/wiki/Document-oriented_database

 it's really confusing what is real meaning of NoSQL database?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-is-NoSQL-database-or-not-tp4120554.html
Sent from the Solr - User mailing list archive at Nabble.com.


Adding filter query slows down avg response time

2014-02-28 Thread nutchsolruser
I am finding users with same nick name in certain area. when i send both
queries in q parameter to solr it works really fast . but if i send location
query in fq then it slows down too much. why it is so? why adding fq to
query degrades my performance?

nickname:nick name
{!geofilt pt=20.2284,80.2284 sfield=ps_lat_long d=4}



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Adding-filter-query-slows-down-avg-response-time-tp4120555.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Adding filter query slows down avg response time

2014-02-28 Thread nutchsolruser
Found and here,
may be it's because my filter query is changing for each new user. Better i
keep it in main query
http://lucene.472066.n3.nabble.com/fq-vs-q-td495570.html



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Adding-filter-query-slows-down-avg-response-time-tp4120555p4120559.html
Sent from the Solr - User mailing list archive at Nabble.com.


Phonetic filter factory for indian languages

2012-10-22 Thread nutchsolruser
I was trying to use phonetic filter factory , I have tried all the encoders
that are available with solr.PhoneticFilterFactory but none of them is
supporting indian languages . Is there any other Filter/Method available so
that i can get phonetic representation for indian languages e.g
Hindi,tamil,Bengali etc

If not then how we can modify existing filters to support these languages.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Phonetic-filter-factory-for-indian-languages-tp4015104.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Starts with Query

2012-06-15 Thread nutchsolruser
Thanks Jack for valuable response,Actually i am trying to match *any* numeric
pattern at the start of each document.  I dont know documents in index i
just want documents title starting with any digit.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Starts-with-Query-tp3989627p3989761.html
Sent from the Solr - User mailing list archive at Nabble.com.

Starts with Query

2012-06-14 Thread nutchsolruser
I want to find documents whose title is starting with digit, what will be
solr query for this. I have tried many queries but could not able to
configure proper query for this.
Note : title is a field in my index.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Starts-with-Query-tp3989627.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Difference between two solr indexes

2012-04-17 Thread nutchsolruser
I'm Also seeking solution for similar problem. 

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Difference-between-two-solr-indexes-tp3916328p3917050.html
Sent from the Solr - User mailing list archive at Nabble.com.


SolrJ : Size of solr Results

2012-03-19 Thread nutchsolruser
Hi All,
QueryResponse rsp = solrServer.query( query );
SolrDocumentList docs = rsp.getResults();

here i am getting docs.size() is 100 how can i change the size. or is there
any other way to iterate docs above 100. i am stucked here.

Thanks,
myauu

--
View this message in context: 
http://lucene.472066.n3.nabble.com/SolrJ-Size-of-solr-Results-tp3838555p3838555.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SolrJ : Size of solr Results

2012-03-19 Thread nutchsolruser
Hey iorixxx,

Thank you. 

--
View this message in context: 
http://lucene.472066.n3.nabble.com/SolrJ-Size-of-solr-Results-tp3838555p3838877.html
Sent from the Solr - User mailing list archive at Nabble.com.