Re: Fetch Unique Values

2013-10-14 Thread tamanjit.bin...@yahoo.co.in
/fetch first 10,000 unique records based on a field/
Do you mean fetch 10,000 records each with a unique value of the field? Is 
Grouping    what you are
looking for?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Fetch-Unique-Values-tp4095371p4095446.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Clustering unstructured text data

2013-10-14 Thread tamanjit.bin...@yahoo.co.in
You may want to have a look at  SolrJ   



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Clustering-unstructured-text-data-tp4095241p4095444.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr Grouping

2013-11-15 Thread tamanjit.bin...@yahoo.co.in
Hi,
In Grouping we can group docs as per a field. Can we also have something
like pagination within a group.

For eg.
G1 has G1D1,G1D2,G1D3
G2 has G2D1, G2D2
G3 has G3D1, G3D2, G3D3, G3D4.

Can I fetch the results like (if group.format=simple)

Page1:
G1D1
G2D1
G3D1

Page 2:
G1D2
G2D2
G3D2

Page3:
G1D3
G2D2
G3D3

Page4:
G3D4







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


Re: Solr Grouping

2013-11-15 Thread tamanjit.bin...@yahoo.co.in
My question is fro group.format=simple. In normal grouping i know
group.offset would work



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


Re: implement relevency

2014-01-28 Thread tamanjit.bin...@yahoo.co.in
You may also want to look  here
  



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


Re: Index a new record in MySQL

2014-02-08 Thread tamanjit.bin...@yahoo.co.in
But delta indexing is supposed to do that. Please share details of your
datatimport-config.xml and version of Solr for further help.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Index-a-new-record-in-MySQL-tp4116164p4116184.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Index a new record in MySQL

2014-02-08 Thread tamanjit.bin...@yahoo.co.in
The config seems ok. Have you checked the date in the properties file before
a delta-import? MySql does give issues with date format. Also, check your
webcontainer/solr logs; whether they give any exception when you call a
delta-import.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Index-a-new-record-in-MySQL-tp4116164p4116193.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Composite Unique key from existing fields in schema

2014-02-08 Thread tamanjit.bin...@yahoo.co.in
You could use a combination of all your composite key columns and put them in
a field in solr which can then be used as the unique key. As in if you have
two columns c1 and c2, you could have a field in solr which have the value
as c1_c2 or something on those lines.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Composite-Unique-key-from-existing-fields-in-schema-tp4116036p4116195.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Composite Unique key from existing fields in schema

2014-02-08 Thread tamanjit.bin...@yahoo.co.in
Also take a look at 
http://wiki.apache.org/solr/UniqueKey#Use_cases_which_require_a_unique_key_generated_from_data_in_the_document

  



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Composite-Unique-key-from-existing-fields-in-schema-tp4116036p4116198.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Configuring SpellCehckComponent

2013-08-11 Thread tamanjit.bin...@yahoo.co.in
The searchComponent would be placed in your solrconfig.xml. There is no
specific place for it. This is what the comment in you solrconfig.xml says:

 Search Components

   Search components are registered to SolrCore and used by 
   instances of SearchHandler (which can access them by name)
   
   By default, the following components are available:
   
   
   
   
   
   
   
   
   Default configuration in a requestHandler would look like:

   
 query
 facet
 mlt
 highlight
 stats
 debug
   

   If you register a searchComponent to one of the standard names, 
   that will be used instead of the default.

   To insert components before or after the 'standard' components, use:

   
 myFirstComponentName
   

   
 myLastComponentName
   

   NOTE: The component registered with the name "debug" will
   always be executed after the "last-components"



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


Re: Spelling suggestions.

2013-08-11 Thread tamanjit.bin...@yahoo.co.in
I think the issue is that you are trying to use WordBreakSolrSpellChecker
(which was introduced in Solr 4.x version) in your Solr App of 3.5 version.
You need to correct that.



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


commit vs soft-commit

2013-08-11 Thread tamanjit.bin...@yahoo.co.in
Hi,
Some confusion in my head.
http://http://wiki.apache.org/solr/UpdateXmlMessages#A.22commit.22_and_.22optimize.22

  
says that
/A soft commit is much faster since it only makes index changes visible and
does not fsync index files or write a new index descriptor./

So this means that even with every softcommit a new searcher opens right? If
it does, isn't it still very heavy?




--
View this message in context: 
http://lucene.472066.n3.nabble.com/commit-vs-soft-commit-tp4083817.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Configuring SpellCehckComponent

2013-08-11 Thread tamanjit.bin...@yahoo.co.in
There are two portions here:
1. To build a dictionary. Since you are using IndexBasedSpellChecker, you
would have to tell Solr, what field from your index to build up the
dictionary from.
2. To actually be able to search for your corrected spellings. For this you
would need a new requestHandler, to query Solr.

1. Config settings for building a dictionary:

  

  
solr.IndexBasedSpellChecker
org.apache.solr.spelling.suggest.tst.FSTLookup
 XYZ
  
 true
 ./
   


2. To make a requestHandler:

" class="solr.SearchHandler">
 
explicit
false
true
5


   spellcheck





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


Re: commit vs soft-commit

2013-08-11 Thread tamanjit.bin...@yahoo.co.in
Erik-
/It does invalidate the "top level" caches, including the caches you
configure in solrconfig.xml. /

Could you elucidate?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/commit-vs-soft-commit-tp4083817p4083844.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Spellchecker suggests Tokens

2013-08-11 Thread tamanjit.bin...@yahoo.co.in
I think the issue lies in the analysis of the field you use for
spellchecking. It also contains NGramFilterFactory. So wither copy your data
to another field with  some other fieldType which doesnot do
NGramFilterFactory analysis and then try this out.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Spellchecker-suggests-Tokens-tp4082821p4083846.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: multiValued : How do I specify name to each value returned by multiValue field.

2013-08-12 Thread tamanjit.bin...@yahoo.co.in
I think what you require here is to have different fields for mobile/landline
etc. Based on where and what data you fetch these fields will be populated.
You can also have a multivalued field that will contain all these fields
(copyField can come in handy) for search etc.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/multiValued-How-do-I-specify-name-to-each-value-returned-by-multiValue-field-tp4083922p4083923.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: multiValued : How do I specify name to each value returned by multiValue field.

2013-08-12 Thread tamanjit.bin...@yahoo.co.in
So your doc would look something like this:


 Micheal
 Schumacher
090933434343
052323232323
073628362782
 
090933434343
052323232323
073628362782
 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/multiValued-How-do-I-specify-name-to-each-value-returned-by-multiValue-field-tp4083922p4083924.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet field display name

2013-08-12 Thread tamanjit.bin...@yahoo.co.in
Would it not be convenient to replace these alphabets with "pretty" alphabets
in the application?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Facet-field-display-name-tp4083915p4083928.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SOLR OR query, want 1 of the 2 results

2013-08-12 Thread tamanjit.bin...@yahoo.co.in
Can you not get more number of results i.e. for a larger distance and sort by
distance?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/SOLR-OR-query-want-1-of-the-2-results-tp4083957p4083966.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Extending fieldtypes

2013-08-12 Thread tamanjit.bin...@yahoo.co.in
You would need to provide a Solr file that would be the basic field type and
do rest of analysis on it. Is this what you want?

eg. fieldType name="textSpellPhrase" class="solr.TextField"
positionIncrementGap="100" stored="false"
multiValued="true">



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


Re: Handling categories( level one and two) based navigation

2013-08-13 Thread tamanjit.bin...@yahoo.co.in
This may be helpful, especially the last bit:

http://blog.griddynamics.com/2011/06/solr-experience-search-parent-child.html
 
 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Handling-categories-level-one-and-two-based-navigation-tp4083259p4084477.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Migrating from solr 3.5 to 4.4

2013-08-16 Thread tamanjit.bin...@yahoo.co.in
/ I read that we can point the new solr 4.4 to the data index from previous
solr i.e. 3.5/
Yes you can do that. It would be even better if you would run an optimize
post migration, it will re-write the segments.

/f this is true, can we change the schema in 4.4 solr. We have many
un-stored fields in solr 3.5 schema, which we would like to make stored, so
that we can take the advantage of atomic updates. /
Changes can be made to the schema, but reindexing would be required for the
data to make unstored data, stored.

/If we do a csv export from 3.5 solr and then import it in the 4.4 index, we
get a problem with copy fields i.e. the value in the copy field is computed
twice. Once from the csv import and other from solr internal computation. /

Have you tried removing the copyField data from the csv? I think it should
work then.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Migrating-from-solr-3-5-to-4-4-tp4085049p4085051.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr 4.3 and above core swap

2013-08-16 Thread tamanjit.bin...@yahoo.co.in
Is any other source trying to write into your index when you try to reload
it? If this was so, then I guess it would have locked up the index. Check
for a write.lock file in your index directory. You can remove that file
manually and then retry it.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-4-3-and-above-core-swap-tp4084794p4085052.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Indexing an XML file in Apache Solr

2013-08-16 Thread tamanjit.bin...@yahoo.co.in
DIH is not at all necessary and yes, SolrJ can be used to add data, the XML
bit am not too sure though.

Try:
http://wiki.apache.org/solr/UpdateXmlMessages
  
and
http://wiki.apache.org/solr/Solrj   



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Indexing-an-XML-file-in-Apache-Solr-tp4085053p4085054.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Stripping Payload Fields

2013-08-17 Thread tamanjit.bin...@yahoo.co.in
Why dont you copy the data you want to suggest onto another field and suggest
from there. Else the trimming will have to happen at the application end if
that luxury is available.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Stripping-Payload-Fields-tp4085264p4085288.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: What filter to use to search with spaces omitted/included between words?

2013-08-20 Thread tamanjit.bin...@yahoo.co.in
I think you should skip spaces before indexing and querying followed by a
filter of EdgeNGramFilterFactory at index time. This may requre you to work
on your data before indexing & querying. Point is we do not want to make
tokens by breaking them into spaces. So indexing and query time should be
the entire keyword minus space(all lowercases ofcourse). Your example1 will
be indexed as bestbuy and example2 as circuitcity (followed by a filter of
EdgeNGramFilterFactory)

So your fieldType will have something like this:


  
  
  


  
 


This is actually a hack. We use this for autosuggestions and all. But this
should work in your case.





--
View this message in context: 
http://lucene.472066.n3.nabble.com/What-filter-to-use-to-search-with-spaces-omitted-included-between-words-tp4085576p4085600.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: What filter to use to search with spaces omitted/included between words?

2013-08-20 Thread tamanjit.bin...@yahoo.co.in
Additionally, if you dont want results like q=best and result=bestbuy; you
can use  to actually replace whitespaces with nothing.

http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#CharFilterFactories

  



--
View this message in context: 
http://lucene.472066.n3.nabble.com/What-filter-to-use-to-search-with-spaces-omitted-included-between-words-tp4085576p4085601.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: convert text file to solr document where delimiter fields are fields of document

2013-08-20 Thread tamanjit.bin...@yahoo.co.in
Hi,
Try this:
http://wiki.apache.org/solr/DataImportHandler#FileDataSource
  
and
http://wiki.apache.org/solr/DataImportHandler#httpds
  



--
View this message in context: 
http://lucene.472066.n3.nabble.com/convert-text-file-to-solr-document-where-delimiter-fields-are-fields-of-document-tp4085611p4085614.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Error while importing HBase data to Solr using the DataImportHandler

2013-08-20 Thread tamanjit.bin...@yahoo.co.in
You would need to add the jar that is missing to the Solr web-inf\lib folder.
You can do that using winzip etc into the lib folder of solr.war. Then you
need to redeployed the changed solr.war and restart your webcontainer.

The jar is available here:
http://code.google.com/p/hbase-solr-dataimport/downloads/detail?name=hbase-solr-dataimport-0.0.1.jar&can=2&q=

  



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Error-while-importing-HBase-data-to-Solr-using-the-DataImportHandler-tp4085613p4085616.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Filter Query

2013-08-21 Thread tamanjit.bin...@yahoo.co.in
I am unsure what you mean when you say /how big a filter query can be ? /. Do
you mean how long can a single filter query can be or a limit on number of
filter queries that can be put?

For the former you may want to visit the maxBooleanClauses in your
solrconfig. Try the link:
he tottp://wiki.apache.org/solr/SolrConfigXml#The_Query_Section
  

Am not too sure if there is a limit on the number of filters that you can
put in a query.
 In either case, I think the length is also dependent on your webcontainer
config settings i.e. the max url length that it can accept.

Also you may have to revisit your filterCache settings. There is no optimal
number for the filterCache, you may have come to a number after trying
various combinations. 

http://wiki.apache.org/solr/SolrCaching#filterCache
  



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


Re: Schema

2013-08-22 Thread tamanjit.bin...@yahoo.co.in
Verisons mentioned in the wiki only tell you that these features are
available from that version of Solr. This will not be applicable in your
case as you are using the latest version. So everything you find in the wiki
would be available in 4.4 Solr



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


Re: Searching solr on school name during year

2013-09-09 Thread tamanjit.bin...@yahoo.co.in
You could either add two separate fields, one for start year and another for
end year. And then facilitate range queries to include all docs.
eg. Name - Boris
start year - 2001
end year - 2005



Or you could just have one field and put in multivalued years a student has
attended the school.
name  -boris
year 2001
   2002
   2003
  2004
  2005

I think the second approach would complete your objective



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Searching-solr-on-school-name-during-year-tp4088817p4088910.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Data import

2013-09-09 Thread tamanjit.bin...@yahoo.co.in
Any form of indexing would always "replace" a document and never update it.
If you dont want replacements dont use a unique key in your schema and sort
on time/date etc.
 
But i still dont get one thing, if i have two indexes that i try to merge
and both the indexes have some documents with same unique ids, they dont
overwrite each other. Instead what i have is two documents with same unique
id. Why does this happen? Anyone any clues?



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


Re: Solr suggest - How to define solr suggest as case insensitive

2013-09-09 Thread tamanjit.bin...@yahoo.co.in
This is probably because your dictionary is made up of all lower case tokens,
but when you query the spell-checker similar analysis doesnt happen. Ideal
case would be when you query the spellchecker you send lower case queries



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-suggest-How-to-define-solr-suggest-as-case-insensitive-tp4088764p4088918.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: solr suggestion -

2013-09-09 Thread tamanjit.bin...@yahoo.co.in
Don't do any analysis on the field you are using for suggestion. What is
happening here is that query time and indexing time the tokens are being
broken on white space. So effectively, "at" is being taken as one token and
"l" is being taken as another token for which you get two different
suggestions.



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


Re: "delta-import" giving Total Documents Processed = 0

2013-09-10 Thread tamanjit.bin...@yahoo.co.in
Your delta query i.e. 
deltaQuery ="select distinct clai_idn as clai_idn from claim_history where  
 
clai_idn=29">

always gets only one row with a fixed "clai_idn". So here you fetch the same
row. What you would want is to get all rows after a particular time, for
that you may want to include timestamp in your deltaQuery as in the eg.
here:
http://wiki.apache.org/solr/DataImportHandler#Delta-Import_Example
  




--
View this message in context: 
http://lucene.472066.n3.nabble.com/delta-import-giving-Total-Documents-Processed-0-tp4089118p4089138.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: spellcheck causing Core Reload to hang

2013-09-13 Thread tamanjit.bin...@yahoo.co.in
Any specific error? Anything in the logs when it hangs?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/spellcheck-causing-Core-Reload-to-hang-tp4089866p4089931.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: FAcet with " " values are displayes in output

2013-09-18 Thread tamanjit.bin...@yahoo.co.in
Any analysis happening on the country field during indexing? If so then
facets are on tokens.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/FAcet-with-values-are-displayes-in-output-tp4090777p4090904.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr External Scripts Replication Issue

2013-10-03 Thread tamanjit.bin...@yahoo.co.in
Hi,
We use a Master-Slave architecture and use rsyncing to sync the slaves. It
was working fine till 3.5 version. It is giving issues on migrating to 4.3
version.

Now after I have commited incremental changes on master and optimize the
index and run snappuller, snapinstaller, readercycle on slaves. The files
get copied, but the result changes in SOlr are not reflected.

I tried the following things, but none seemt o work:
1. I run .commit/./optimize from bin folder. It doesnt work
2. I hit commit/optimize urls. They dont work
3. I try to optimize from the admin console. It doesn't work
4. If I reload the core (we use multicore). The files in index folder get
replaced with old files (i.e. files from the time the index is not updated)
with an extra write.lock 
5. If i try to restart tomcat. It at times gives an error *.si file missing
(FileNotFoundException).

Quick help will be appreciated.

Thanks in advance



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-External-Scripts-Replication-Issue-tp4093343.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr External Scripts Replication Issue

2013-10-03 Thread tamanjit.bin...@yahoo.co.in
Also once in a while it gives the following exception:

org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1434)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1546)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1319)
at
org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:565)
at
org.apache.solr.update.processor.RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:95)
at
org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:64)
at
org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1109)
at
org.apache.solr.update.processor.LogUpdateProcessor.processCommit(LogUpdateProcessorFactory.java:157)
at
org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:266)
at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:173)
at
org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)
at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1816)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:656)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:359)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:155)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.solr.common.SolrException: Error opening Reader
at
org.apache.solr.search.SolrIndexSearcher.getReader(SolrIndexSearcher.java:172)
at
org.apache.solr.search.SolrIndexSearcher.(SolrIndexSearcher.java:183)
at
org.apache.solr.search.SolrIndexSearcher.(SolrIndexSearcher.java:179)
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1410)
... 31 more
Caused by: java.io.FileNotFoundException:
/opt/magicbricks_3_5/solr/propertyCore/data/index/_514f.si (No such file or
directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:212)
at 
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:193)
at
org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoReader.read(Lucene40SegmentInfoReader.java:50)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:301)
at
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:56)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:783)
at
org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:88)
at
org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:34)
at
org.apache.solr.search.SolrIndexSearcher.getReader(SolrIndexSearcher.java:169)
... 34 more




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-External-Scripts-Replication-Issue-tp4093343p4093345.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr External Scripts Replication Issue

2013-10-03 Thread tamanjit.bin...@yahoo.co.in
Found the solution. It was related to solrdeletionpolicy. Phew!!!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-External-Scripts-Replication-Issue-tp4093343p4093356.html
Sent from the Solr - User mailing list archive at Nabble.com.


FileNotFoundException

2013-10-03 Thread tamanjit.bin...@yahoo.co.in
Hi,
We migrated to Solr 4.3 from 3.5 yesterday. We use multicore Master Slave
architecture and use external scripts to sync the slaves. Every 2-3 hours
cores on our slaves start going down (not all but some. We have about 17
cores). And the logs show the following exception:

1256587 [http-bio-/0.0.0.0-80-exec-2] ERROR
org.apache.solr.servlet.SolrDispatchFilter  รข
null:org.apache.solr.common.SolrException: SolrCore 'CoreName' is not
available due to init failure: Error opening new searcher
at
org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1212)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:155)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.(SolrCore.java:821)
at org.apache.solr.core.SolrCore.(SolrCore.java:618)
at
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:949)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
... 3 more
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1434)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1546)
at org.apache.solr.core.SolrCore.(SolrCore.java:796)
... 13 more
Caused by: org.apache.solr.common.SolrException: Error opening Reader
at
org.apache.solr.search.SolrIndexSearcher.getReader(SolrIndexSearcher.java:172)
at
org.apache.solr.search.SolrIndexSearcher.(SolrIndexSearcher.java:183)
at
org.apache.solr.search.SolrIndexSearcher.(SolrIndexSearcher.java:179)
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1410)
... 15 more
Caused by: java.io.FileNotFoundException:
/opt/solr/myCore/data/index/_2he9.si (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:212)
at
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:193)
at
org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoReader.read(Lucene40SegmentInfoReader.java:50)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:301)
at
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:56)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:783)
at
org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
at
org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:88)
at
org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:34)
at
org.apache.solr.search.SolrIndexSearcher.getReader(SolrIndexSearcher.java:169)
... 18 more



--
View this message in context: 
http://lucene.472066.n3.nabble.com/FileNotFoundException-tp4093416.html
Sent from the Solr - User ma

Re: FileNotFoundException

2013-10-04 Thread tamanjit.bin...@yahoo.co.in
I did see that. The file its looking for doesn't exist post slaves have been
updated. I suspect there was segment info file of that name before the
syncing happened and once the file was removed the searcher still looks for
the file. Strange behavior, don't know why should this happen.



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


Re: Spellcheck

2011-09-07 Thread tamanjit.bin...@yahoo.co.in
Hi if you have not figyured it out as yet, this might help::

Issues with *schema.xml*

 

here the type should actually be textSpell (fieldType that you have defined
earlier)


 Also I would suggest that you use a seperate RequestHandler for your
queries. You alreasy have spellCheckCompRH defined in the solrconfig.xml, to
which you can make the changes and add your 

 So really your fist query should be like:


http://localhost:8983/solr/spellCheckCompRH/?q=*:*&&version=2.2&start=0&rows=10&indent=on&spellcheck=true&spellcheck.build=true&spellcheck.dictionary=textSpell





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


Re: Question Query Detection Strategies?

2011-09-08 Thread tamanjit.bin...@yahoo.co.in
If you have meta-data available on what all is actually searched on your
site, you can use mahout to get keywords, and then define your solr
accordingly.

THis might help:

https://cwiki.apache.org/MAHOUT/collocations.html

Alternatively, you can parse your query (either at client end or server end)
to detect keywords. But this may require some research, and may depend upon
your searchable data.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Question-Query-Detection-Strategies-tp3314477p3318872.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Spellcheck

2011-09-08 Thread tamanjit.bin...@yahoo.co.in
In the RequestHandler spellCheckCompRH you have to make changes as follows:

 

explicit
  
textSpell
  false
  
  true
  
  5


  spellcheck

  

This hopefully should do it.

Also I would suggest that for the time being (i.e. till you get some
results) you dont go with a multivalued field, but with a single valued one.
Build up a dictionary, get some results and then move for multi-valued. I
rememberfacing some issues with regard to multivalued field myself.

Also keep the type of the field in schema.xml as textSpell only.


Am not sure if you have configured the  searchComponent properly

Find:



and add

 
solr.IndexBasedSpellChecker
textSpell 
textSpell
true
./spellcheckerDefault
   






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


Re: query - part default OR and part default AND

2011-09-14 Thread tamanjit.bin...@yahoo.co.in
Keep the default Search Operator as OR
And for phrase1, on splitting on whitespace just add "AND" instead of "+".

Hopefully this should work. Please do confirm.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/query-part-default-OR-and-part-default-AND-tp3335851p3336194.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: DIH delta last_index_time

2011-09-14 Thread tamanjit.bin...@yahoo.co.in
Rahul is right.

You may add a script to change the date in data-import.properties to half
hour before the last modi time before each delta-import.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/DIH-delta-last-index-time-tp3334992p3336203.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Schema fieldType y-m-d ?!?!

2011-09-14 Thread tamanjit.bin...@yahoo.co.in
What we did was get the date from db, and stored it in a string fieldType in
the format mmdd. It works fine for us, as range query works just fine.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Schema-fieldType-y-m-d-tp3335359p3336309.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Two unrelated questions

2011-09-21 Thread tamanjit.bin...@yahoo.co.in
For *1* I have faced similar issues, and have realized that it has got more
to do with the data I am trying to index. In some cases when I run even a
full-import with DIH, unless its a flat table that I am tryin to index,
there are often issues at data end when I try to get joins and then index
data.

Am not too sure if you are joining two tables. If not I would suggest that
you re-check your data and then re-index using full-import.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Two-unrelated-questions-tp3348991p3357720.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to delete all of the Indexed data?

2011-09-23 Thread tamanjit.bin...@yahoo.co.in
Just another point worth mentioning here.. Though its related to Nutch and
not Solr..

If you want to re-crawl and try to get new data into the index, you have to
remove data from the crawl folder (default for nutch) of nutch too.. Only
then will you get fresh crawled data (not to be confused with re-crawled
data)

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-delete-all-of-the-Indexed-data-tp3361148p3362558.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to implement Spell Checker using Solr?

2011-09-26 Thread tamanjit.bin...@yahoo.co.in
Firstly, just to make it clear the dictionary is made out of already indexed
terms, rather it is built upon it if you are using *solr.IndexBasedSpellChecker* which you are.

Next lot of changes are required for your *solrconfig.xml*

1. spell is the name of the field which will be used
to create your dictionary. Does it exist in schema.xml?

2. textSpell is the name of
FieldType used for your dictionary building, as in the spell should be of type textSpell in schema.xml. Is it
so?

Now for you internal error from crawling. This is most probably because your
siolrconfig.xml/schema.xml has been changed. This I assume so because as you
say before trying to implement spellcheck this was working.

/Also, I am not too sure so as to how I can make my search work based on the
search control in my application Like how can I search with the word and
have the suggestion at the same time, since when the search item is say
"form"/"formm", then I should have essentially separate URL created. Does
Solr Spell checker component take care of it on its own. if so how and
exactly how the Solrconfig and Schema xmls should be configured for the
same.


Please note: I would prefer to use a filebased dictionary for the search, so
kindly suggest on those lines.
/

If you are looking for filebased searching, you are going in the wrong
direction. You are trying to use indexbasedspellchecker class when actually
what you need is


file
solr.FileBasedSpellChecker
spellings.txt
UTF-8
./spellcheckerFile


Kindly read about spellchecker more.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-implement-Spell-Checker-using-Solr-tp3268450p3371620.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: help understanding match

2011-09-27 Thread tamanjit.bin...@yahoo.co.in
Hi,
1. Just curious - you have your defaultsearchfield - defaultquery as not
stored, how do you know that it contains what you think it contains?
2. the fieldType of defaultquery is query_text, am not sure what all
analyzers are you using on this fields type both at indexing time and
querying time . This could actually be the reason why stopwords were not
used both during indexing and querying time.
3. Lastly, if you wanr OR operato to work dont use ""(quotes) instead use ()
 around your searchable term.


--
View this message in context: 
http://lucene.472066.n3.nabble.com/help-understanding-match-tp3373243p3373324.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: A simple query?

2011-10-04 Thread tamanjit.bin...@yahoo.co.in
Hi,
Set your default operator to OR i.e.

 in schema.xml

Also keep your fieldType=text i.e.



As you would want whitespace tokenization and try your query with () i.e.

/select/?q=myfields:(a b)&version=2.2&start=0&rows=2&indent=on

This hopefully should solve your problem.

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


Highlighting configuration

2011-10-07 Thread tamanjit.bin...@yahoo.co.in
Hi,
When I try to enable my highlighting with hl=true I get the following
exception. (Note: My default search field it both stored and tokenized.)

message null java.lang.NullPointerException at
org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:83)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:169)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1205) at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:304)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:232)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)

description The server encountered an internal error (null
java.lang.NullPointerException at
org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:83)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:169)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1205) at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:304)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:232)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595) ) that prevented it from fulfilling
this request.

Kindly help.

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


Re: Highlighting configuration

2011-10-10 Thread tamanjit.bin...@yahoo.co.in
My default Request Handler looks like this:

 

all




highlight


collapse
facet




And I have uncommented the following line:

 

Still awaiting a reply.

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


Which patch 236 to choose for collapse - Solr 3.5

2012-01-29 Thread tamanjit.bin...@yahoo.co.in
Hi, we are migrating to Solr 3.5 from 1.3 would want to know which Solr patch
in the link
http:// https://issues.apache.org/jira/browse/SOLR-236  should I use for
collapsing.

I've tried two patches
1. SOLR-236-branch_3x.patch(18/Feb/11 16:20), it did not work at all
2. field-collapse-5.patch - i got arrayoutofboundsexception, which i
corrected only to get null pointer exception.

Any help will be appreciated.








--
View this message in context: 
http://lucene.472066.n3.nabble.com/Which-patch-236-to-choose-for-collapse-Solr-3-5-tp3697685p3697685.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Which patch 236 to choose for collapse - Solr 3.5

2012-01-29 Thread tamanjit.bin...@yahoo.co.in
Yes i thought so too, but when i tried setting up it gave me exception when
it tried to read solr cores. The exception was there because of collapse.

The wiki page talks only of grouping and unfortunately is mostly silent on
collapsing

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Which-patch-236-to-choose-for-collapse-Solr-3-5-tp3697685p3697746.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Which patch 236 to choose for collapse - Solr 3.5

2012-01-29 Thread tamanjit.bin...@yahoo.co.in
Our application uses collapse on a major scale. If grouping is undertaken
major changes would be required on application end, which I want to avoid.

Here is the exception that I get without the patch:

Jan 30, 2012 10:39:52 AM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: Error loading class
'org.apache.solr.handler.component.CollapseComponent'
at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:425)
at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:447)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1556)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1550)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1583)
at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:856)
at org.apache.solr.core.SolrCore.(SolrCore.java:560)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:463)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207)
at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException:
org.apache.solr.handler.component.CollapseComponent
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373)


*
And this is the latest exception that I get, after applying the patch:*

null java.lang.NullPointerException at
org.apache.solr.search.fieldcollapse.collector.FieldValueCountCollapseCollectorFactory$FieldValueCountCollapseCollector.getResult(FieldValueCountCollapseCollectorFactory.java:84)
at
org.apache.solr.search.fieldcollapse.AbstractDocumentCollapser.getCollapseInfo(AbstractDocumentCollapser.java:220)
at
org.apache.solr.handler.component.CollapseComponent.doProcess(CollapseComponent.java:178)
at
org.apache.solr.handler.component.CollapseComponent.process(CollapseComponent.java:121)
at
org.apache.solr.ha

Re: Which patch 236 to choose for collapse - Solr 3.5

2012-02-02 Thread tamanjit.bin...@yahoo.co.in
I tried using grouping. Actually what works for me is group.main=true.

However there is an issue. Collapsing, as in the earlier version when it
returned docs, it gave a count of number of docs returned post collapsing.
But I could not find a similar feature in grouping..

For eg. if before grouping I got 42 docs and they were put into 5 groups, I
only get result count as 42 and not 5. This however was supported in
collapse.

Any work around for this?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Which-patch-236-to-choose-for-collapse-Solr-3-5-tp3697685p3709681.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Controll of results output

2012-02-02 Thread tamanjit.bin...@yahoo.co.in
Try sorting on category. That should do.

http://wiki.apache.org/solr/CommonQueryParameters#sort
http://wiki.apache.org/solr/CommonQueryParameters#sort 

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Controll-of-results-output-tp3709288p3709691.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Which patch 236 to choose for collapse - Solr 3.5

2012-02-02 Thread tamanjit.bin...@yahoo.co.in
You are right it does. Kind of missed this all together. Thanks

And anyway to know the actual number of docs returned post grouping?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Which-patch-236-to-choose-for-collapse-Solr-3-5-tp3697685p3709743.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Which patch 236 to choose for collapse - Solr 3.5

2012-02-02 Thread tamanjit.bin...@yahoo.co.in
No my question is post grouping.
If group.limit=5 then a group may have 5 docs or less. So if i have to find
out total number of docs returned post grouping i will have to see the count
of docs in each group which may be any one of these - 5 or 4 or 3 or 2 or 1.

So does that mean i have to iterate and find out the actual docs with me?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Which-patch-236-to-choose-for-collapse-Solr-3-5-tp3697685p3709814.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Which patch 236 to choose for collapse - Solr 3.5

2012-02-02 Thread tamanjit.bin...@yahoo.co.in
Ummm.. I think there is some confusion here.

As per my understanding, matches is the total no of docs which the original
query/filter query returned. On these docs grouping is done. So matches may
not be actually equal to total no. of returned in your result, post
grouping. Its just a subset of the matches, divided into groups.

Is my understanding correct?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Which-patch-236-to-choose-for-collapse-Solr-3-5-tp3697685p3712195.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: nutch in solr

2012-02-05 Thread tamanjit.bin...@yahoo.co.in
alessio crisantemi-2,
I think you got it.. Check the jars in nutch lib and see if the solr n solrj
jars are same... That could be the issue

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


Re: multiple values encountered for non multiValued field type:[text/html, text, html]

2012-02-06 Thread tamanjit.bin...@yahoo.co.in
Hi I am not sure if what you are doing is possible i.e. having a schema other
than that provided by nutch. The schema provided by nutch in its directory
\conf is to be used as the solr schema.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/multiple-values-encountered-for-non-multiValued-field-type-text-html-text-html-tp3719088p3719253.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Do we need reindexing from solr 1.4.1 to 3.5.0?

2012-02-16 Thread tamanjit.bin...@yahoo.co.in
There may be issues with your solrconfig. Kindly post the exception that you
are recieving.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Do-we-need-reindexing-from-solr-1-4-1-to-3-5-0-tp3739353p3750937.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Best requestHandler for "typing error".

2012-02-16 Thread tamanjit.bin...@yahoo.co.in
You can enable the spellcheck component and add it to your default request
handler.

This might be of use:
http://wiki.apache.org/solr/SpellCheckComponent
http://wiki.apache.org/solr/SpellCheckComponent 

It could be used both during autosuggest as well as did you mean.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Best-requestHandler-for-typing-error-tp3749576p3750995.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Basic SOLR help needed

2012-02-19 Thread tamanjit.bin...@yahoo.co.in
Hi,
I guess the behavior is because of the field type of the field INST_NAME.
Try changing its type to string for getting the desired results.
text_en_splitting splits on whitespace.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Basic-SOLR-help-needed-tp3759855p3759866.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: nutch and solr

2012-02-21 Thread tamanjit.bin...@yahoo.co.in
Try this command.

 bin/nutch crawl urls//.txt -dir crawl/
-threads 10 -depth 2 -topN 1000

Your folder structure will look like this:

-- urls -- -- .txt
|
|
 -- crawl -- 

The folder name will be for different domains. So for each domain folder in
urls folder there has to be a corresponding folder (with the same name) in
the crawl folder.


--
View this message in context: 
http://lucene.472066.n3.nabble.com/nutch-and-solr-tp3765166p3765607.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: nutch and solr

2012-02-24 Thread tamanjit.bin...@yahoo.co.in
The empty path message is becayse nutch is unable to find a url in the url
location that you provide.

Kindly ensure there is a url there.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/nutch-and-solr-tp3765166p3773089.html
Sent from the Solr - User mailing list archive at Nabble.com.


Parent-Child relationship

2012-05-02 Thread tamanjit.bin...@yahoo.co.in
Hi,
I just wanted to get some information about whether Parent-Child
relationship between documents which Lucene has been talking about has been
implemented in Solr or not? I know join patch is available, would that be
the only solution?

And another question, as and when this will be possible (if its not done
already), would such a functionality (whether join or defining such
relations at index time) would be available across different cores?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Parent-Child-relationship-tp3958259.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Parent-Child relationship

2012-05-04 Thread tamanjit.bin...@yahoo.co.in
Hi,
As per my understanding the join is confined to a single core only and it is
not possible to have joins between docs of different cores. Am I correct
here? If yes, is there a possibility of having joins across cores anytime
soon?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Parent-Child-relationship-tp3958259p3961509.html
Sent from the Solr - User mailing list archive at Nabble.com.


Not getting data using concat in DIH

2011-07-06 Thread tamanjit.bin...@yahoo.co.in
Hi all,

My data-import.xml looks like this:






































This works fine.

But if I comment the line 




and uncomment the following



It stops working. Does concat not work for fields??

Please help.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Not-getting-data-using-concat-in-DIH-tp3144006p3144006.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Not getting data using concat in DIH

2011-07-06 Thread tamanjit.bin...@yahoo.co.in
The XML comments were not taken.

This is the data-import.xml that does not work. In bold is the line
uncommented.
































<*

 *








--
View this message in context: 
http://lucene.472066.n3.nabble.com/Not-getting-data-using-concat-in-DIH-tp3144006p3144014.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Spell Check

2011-08-08 Thread tamanjit.bin...@yahoo.co.in
Hey thanks. It worked.

I have another query. Since I have made a dictionary on Keyword tokenization
(as I need a dictionary of names), when I try to spellcheck, it works great
on most cases.

But in cases where say the correct word is :"Shivthar Ghal" and I try to
search for a spelling correction on a query say : "Shimthar" I dont get the
correct suggestions in any case.

I get suggestions with spaces in between them, but most of them revolve
around the length of the queried term i.e. Shimthar.

But if i query for ""Shimthar w" I get correct suggestion. Could anyone
explain this phenomenon?

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