[jira] Commented: (SOLR-567) SolrCore Pluggable

2008-05-09 Thread Jason Rutherglen (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595580#action_12595580
 ] 

Jason Rutherglen commented on SOLR-567:
---

IndexSchema needs references to SolrConfig removed.  Like:

public IndexSchema(SolrConfig solrConfig, String name, InputStream is) {

and 

SolrConfig.severeErrors.add( e );

> SolrCore Pluggable
> --
>
> Key: SOLR-567
> URL: https://issues.apache.org/jira/browse/SOLR-567
> Project: Solr
>  Issue Type: Improvement
>Affects Versions: 1.3
>Reporter: Jason Rutherglen
>
> SolrCore needs to be an abstract class with the existing functionality in a 
> subclass.  SolrIndexSearcher the same.  It seems that most of the Searcher 
> methods in SolrIndexSearcher are not used.  The new abstract class need only 
> have the methods used by the other Solr classes.  This will allow other 
> indexing and search implementations to reuse the other parts of Solr.  Any 
> other classes that have functionality specific to the Solr implementation of 
> indexing and replication such as SolrConfig can be made abstract.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-507) Spell Checking Improvements

2008-05-09 Thread Otis Gospodnetic (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595638#action_12595638
 ] 

Otis Gospodnetic commented on SOLR-507:
---

Shalin:
This all sounds very good.  Do you mind opening a new JIRA issue with this 
information, so you can attach a patch to that?  Thanks.

> Spell Checking Improvements
> ---
>
> Key: SOLR-507
> URL: https://issues.apache.org/jira/browse/SOLR-507
> Project: Solr
>  Issue Type: New Feature
>  Components: spellchecker
>Reporter: Jayson Minard
>
> Creating a placeholder issue to track Spell Checking Improvements.  
> Individual issues can later be created and linked for each area of separable 
> concern when they are determined.  
> Areas to discuss include:
> # spell suggestions from within the current query (minus terms being 
> corrected) and filter so that suggestions are always valid
> ** need approaches to merging the spelling list with the current mask of 
> valid records.  Also, is this a better change to Lucene first, or something 
> that belongs in Solr?
> ** need to add spell checking as query component and make available to 
> various query handlers
> ** spell checking to be field specific to support responding correctly with 
> dismax queries
> # spell suggestions from a distributed search (SOLR-303) by augmenting the 
> response, or alternatively just provide a federating of Spell Checker 
> requests on their own and let the application decide when to use each.
> # spell suggestions as a search component to augment other queries
> What are other typical areas of concern, or suggestions for improvements for 
> spell checking that can be tracked?  
> I am willing to look at driving a patch for this area, especially for spell 
> checking working within the current result set, and across  distributed 
> search.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-559) use Lucene updateDocument, deleteDocuments

2008-05-09 Thread Yonik Seeley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595692#action_12595692
 ] 

Yonik Seeley commented on SOLR-559:
---

I'll commit within the next day or so unless there are objections.

> use Lucene updateDocument, deleteDocuments
> --
>
> Key: SOLR-559
> URL: https://issues.apache.org/jira/browse/SOLR-559
> Project: Solr
>  Issue Type: Improvement
>Reporter: Yonik Seeley
>Priority: Minor
> Attachments: SOLR-559.patch
>
>
> Use Lucene  updateDocument and deleteDocuments calls for the update handler

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (SOLR-569) SimpleFacet binarysearch optimization

2008-05-09 Thread Jason Rutherglen (JIRA)
SimpleFacet binarysearch optimization
-

 Key: SOLR-569
 URL: https://issues.apache.org/jira/browse/SOLR-569
 Project: Solr
  Issue Type: Improvement
  Components: search
Affects Versions: 1.3
Reporter: Jason Rutherglen
Priority: Minor


Looks like the SimpleFacets.getFieldCacheCounts could have small optimization:

{noformat}
startTermIndex = Arrays.binarySearch(terms,prefix,nullStrComparator);
if (startTermIndex<0) startTermIndex=-startTermIndex-1;
// find the end term.  \u isn't a legal unicode char, but only compareTo
// is used, so it should be fine, and is guaranteed to be bigger than legal 
chars.
endTermIndex = 
Arrays.binarySearch(terms,prefix+"\u\u\u\u",nullStrComparator);
endTermIndex = -endTermIndex-1;
{noformat} 

to:

{noformat}
startTermIndex = Arrays.binarySearch(terms,prefix,nullStrComparator);
if (startTermIndex<0) startTermIndex=-startTermIndex-1;
// find the end term.  \u isn't a legal unicode char, but only compareTo
// is used, so it should be fine, and is guaranteed to be bigger than legal 
chars.
endTermIndex = Arrays.binarySearch(terms, startTermIndex,
terms.length, prefix+"\u\u\u\u",nullStrComparator);
endTermIndex = -endTermIndex-1;
{noformat} 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-559) use Lucene updateDocument, deleteDocuments

2008-05-09 Thread Ryan McKinley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595698#action_12595698
 ] 

Ryan McKinley commented on SOLR-559:


This seems like the right path to go down...

Any advice on how to get SOLR-139 working once this path is in?  

> use Lucene updateDocument, deleteDocuments
> --
>
> Key: SOLR-559
> URL: https://issues.apache.org/jira/browse/SOLR-559
> Project: Solr
>  Issue Type: Improvement
>Reporter: Yonik Seeley
>Priority: Minor
> Attachments: SOLR-559.patch
>
>
> Use Lucene  updateDocument and deleteDocuments calls for the update handler

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-569) SimpleFacet binarysearch optimization

2008-05-09 Thread Yonik Seeley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595700#action_12595700
 ] 

Yonik Seeley commented on SOLR-569:
---

Unfortunately, Sun didn't add that binarySearch method until Java 6
Solr currently supports Java 5+

> SimpleFacet binarysearch optimization
> -
>
> Key: SOLR-569
> URL: https://issues.apache.org/jira/browse/SOLR-569
> Project: Solr
>  Issue Type: Improvement
>  Components: search
>Affects Versions: 1.3
>Reporter: Jason Rutherglen
>Priority: Minor
>
> Looks like the SimpleFacets.getFieldCacheCounts could have small optimization:
> {noformat}
> startTermIndex = Arrays.binarySearch(terms,prefix,nullStrComparator);
> if (startTermIndex<0) startTermIndex=-startTermIndex-1;
> // find the end term.  \u isn't a legal unicode char, but only compareTo
> // is used, so it should be fine, and is guaranteed to be bigger than legal 
> chars.
> endTermIndex = 
> Arrays.binarySearch(terms,prefix+"\u\u\u\u",nullStrComparator);
> endTermIndex = -endTermIndex-1;
> {noformat} 
> to:
> {noformat}
> startTermIndex = Arrays.binarySearch(terms,prefix,nullStrComparator);
> if (startTermIndex<0) startTermIndex=-startTermIndex-1;
> // find the end term.  \u isn't a legal unicode char, but only compareTo
> // is used, so it should be fine, and is guaranteed to be bigger than legal 
> chars.
> endTermIndex = Arrays.binarySearch(terms, startTermIndex,
> terms.length, prefix+"\u\u\u\u",nullStrComparator);
> endTermIndex = -endTermIndex-1;
> {noformat} 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-559) use Lucene updateDocument, deleteDocuments

2008-05-09 Thread Mike Klaas (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595714#action_12595714
 ] 

Mike Klaas commented on SOLR-559:
-

This patch should probably remove all references to "maxPendingDeletes", 
including in the example solrconfig.xml.

> use Lucene updateDocument, deleteDocuments
> --
>
> Key: SOLR-559
> URL: https://issues.apache.org/jira/browse/SOLR-559
> Project: Solr
>  Issue Type: Improvement
>Reporter: Yonik Seeley
>Priority: Minor
> Attachments: SOLR-559.patch
>
>
> Use Lucene  updateDocument and deleteDocuments calls for the update handler

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (SOLR-570) how to get / search by internal id?

2008-05-09 Thread rassen (JIRA)
how to get / search by internal id?
---

 Key: SOLR-570
 URL: https://issues.apache.org/jira/browse/SOLR-570
 Project: Solr
  Issue Type: Task
  Components: search
 Environment: Windows / Linux
Reporter: rassen
Priority: Critical


I just want to find out my record by internal id. can it be?
if it's not, how to backup , retrieve data after i'm not using Solr / lucene?

So, if the internal document id can't be retrieval,how to create auto increment 
field ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Resolved: (SOLR-570) how to get / search by internal id?

2008-05-09 Thread Otis Gospodnetic (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Otis Gospodnetic resolved SOLR-570.
---

Resolution: Invalid

Please ask on solr-user instead of opening JIRA issues.

> how to get / search by internal id?
> ---
>
> Key: SOLR-570
> URL: https://issues.apache.org/jira/browse/SOLR-570
> Project: Solr
>  Issue Type: Task
>  Components: search
> Environment: Windows / Linux
>Reporter: rassen
>Priority: Critical
>
> I just want to find out my record by internal id. can it be?
> if it's not, how to backup , retrieve data after i'm not using Solr / lucene?
> So, if the internal document id can't be retrieval,how to create auto 
> increment field ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-308) Add a field that generates an unique id when you have none in your data to index

2008-05-09 Thread rassen (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595757#action_12595757
 ] 

rassen commented on SOLR-308:
-

i'm having small question.
how to use these files?

> Add a field that generates an unique id when you have none in your data to 
> index
> 
>
> Key: SOLR-308
> URL: https://issues.apache.org/jira/browse/SOLR-308
> Project: Solr
>  Issue Type: New Feature
>  Components: search
>Reporter: Thomas Peuss
>Assignee: Hoss Man
>Priority: Minor
> Fix For: 1.3
>
> Attachments: UUIDField.patch, UUIDField.patch, UUIDField.patch, 
> UUIDField.patch, UUIDField.patch
>
>
> This patch adds a field that generates an unique id when you have no unique 
> id in your data you want to index.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SOLR-308) Add a field that generates an unique id when you have none in your data to index

2008-05-09 Thread Ryan McKinley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595766#action_12595766
 ] 

Ryan McKinley commented on SOLR-308:


if you are using trunk (the nightly builds, not 1.2) it is included.

> Add a field that generates an unique id when you have none in your data to 
> index
> 
>
> Key: SOLR-308
> URL: https://issues.apache.org/jira/browse/SOLR-308
> Project: Solr
>  Issue Type: New Feature
>  Components: search
>Reporter: Thomas Peuss
>Assignee: Hoss Man
>Priority: Minor
> Fix For: 1.3
>
> Attachments: UUIDField.patch, UUIDField.patch, UUIDField.patch, 
> UUIDField.patch, UUIDField.patch
>
>
> This patch adds a field that generates an unique id when you have no unique 
> id in your data you want to index.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.